Ejemplo n.º 1
0
 private void leaf(AstNode node, String s) {
   String text = getClassName(node);
   if (s != null) {
     text += " " + s;
   }
   printer.print(text + "\n");
 }
Ejemplo n.º 2
0
 private void endNode() {
   printer.print("}\n");
 }
Ejemplo n.º 3
0
 private void node(AstNode node) {
   printer.print(getClassName(node) + "{\n");
 }
Ejemplo n.º 4
0
 private void prop(String name, AstNode node) {
   printer.print(name + ": ");
   node.accept(this);
 }
Ejemplo n.º 5
0
 private void prop(String name, String s) {
   printer.print(name + ": " + s + "\n");
 }