Example #1
0
 protected void createRootNode(EntityType label, String value) {
   fRoot = new Node(label, value);
   fRoot.setEntity(new SourceCodeEntity(value, label, new SourceRange()));
 }
Example #2
0
 protected Node getFirstLeaf() {
   return ((Node) fRoot.getFirstLeaf());
 }
Example #3
0
 protected Node getLastChild() {
   return (Node) fRoot.getLastChild();
 }
Example #4
0
 protected String getTreeString() {
   return fRoot.print(new StringBuilder()).toString();
 }