Mercurial > hg > Members > kono > PLparser
annotate src/plparser/BooleanProperty.java @ 6:563bcb96e4fa
pretty printer
author | one |
---|---|
date | Mon, 30 Aug 2010 12:35:23 +0900 |
parents | b149a5aa465a |
children |
rev | line source |
---|---|
1 | 1 package plparser; |
2 | |
6 | 3 import java.io.PrintStream; |
4 | |
1 | 5 public class BooleanProperty extends Property { |
6 boolean b; | |
7 | |
8 public BooleanProperty(TokenID id) { | |
9 b = id==TokenID.True; | |
10 } | |
11 | |
12 public String toString() { | |
6 | 13 return b?"True":"False"; |
1 | 14 } |
15 | |
6 | 16 public void pp(PrintStream out, int indent,int flag) { |
17 indent(out, indent,flag); | |
18 out.print(toString()); | |
19 } | |
1 | 20 |
21 } |