Mercurial > hg > Members > kono > PLparser
view src/plparser/Property.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 Property { String name; public static int indent_step = 4; public Property() { } public Property(String name2) { name = name2; } public String toString() { return name; } public void indent(PrintStream out, int indent,int flag) { if (flag==0) return; for(int i=0;i<indent;i++) out.print(' '); } public void pp(PrintStream out, int i,int flag) { indent(out,i,flag); out.print(toString()); } }