view src/plparser/BooleanProperty.java @ 6:563bcb96e4fa

pretty printer
author one
date Mon, 30 Aug 2010 12:35:23 +0900
parents b149a5aa465a
children
line wrap: on
line source

package plparser;

import java.io.PrintStream;

public class BooleanProperty extends Property {
	boolean b;
	
	public BooleanProperty(TokenID id) {
		b = id==TokenID.True;
	}

	public String toString() {
		return b?"True":"False";
	}
	
	public void pp(PrintStream out, int indent,int flag) {
		indent(out, indent,flag);
		out.print(toString());
	}
	
}