Mercurial > hg > Members > kono > PLparser
diff 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 diff
--- a/src/plparser/BooleanProperty.java Sun Aug 29 20:28:00 2010 +0900 +++ b/src/plparser/BooleanProperty.java Mon Aug 30 12:35:23 2010 +0900 @@ -1,5 +1,7 @@ package plparser; +import java.io.PrintStream; + public class BooleanProperty extends Property { boolean b; @@ -8,8 +10,12 @@ } public String toString() { - return b?"True":"Fasel"; + return b?"True":"False"; } + public void pp(PrintStream out, int indent,int flag) { + indent(out, indent,flag); + out.print(toString()); + } }