0
|
1 package plparser;
|
|
2
|
6
|
3 import java.io.PrintStream;
|
|
4
|
0
|
5 public class Property {
|
|
6 String name;
|
6
|
7 public static int indent_step = 4;
|
1
|
8
|
|
9 public Property() {
|
|
10
|
|
11 }
|
|
12
|
|
13 public Property(String name2) {
|
|
14 name = name2;
|
|
15 }
|
|
16
|
|
17 public String toString() {
|
|
18 return name;
|
|
19 }
|
|
20
|
6
|
21 public void indent(PrintStream out, int indent,int flag) {
|
|
22 if (flag==0) return;
|
|
23 for(int i=0;i<indent;i++)
|
|
24 out.print(' ');
|
|
25 }
|
|
26
|
|
27 public void pp(PrintStream out, int i,int flag) {
|
|
28 indent(out,i,flag);
|
|
29 out.print(toString());
|
|
30 }
|
|
31
|
0
|
32 }
|