示例#1
0
 void indent(Indenter indenter) {
   indenter.println(branch.data);
   indenter.indent();
   for (Node child : children) {
     child.indent(indenter);
   }
   indenter.deindent();
 }
示例#2
0
 void indent(Indenter indenter) {
   indenter.println(this);
 }
示例#3
0
 public String toString() {
   Indenter indenter = new Indenter();
   indent(indenter);
   return indenter.toString();
 }