Class TreeLayoutAdaptor



  • public class TreeLayoutAdaptor
    extends Object
    Adaptor ANTLR trees to TreeForTreeLayout.
    • Constructor Detail

      • TreeLayoutAdaptor

        public TreeLayoutAdaptor(Tree root)
    • Method Detail

      • isLeaf

        public boolean isLeaf(Tree node)
      • isChildOfParent

        public boolean isChildOfParent(Tree node,
                                       Tree parentNode)
      • getRoot

        public Tree getRoot()
      • getLastChild

        public Tree getLastChild(Tree parentNode)
      • getFirstChild

        public Tree getFirstChild(Tree parentNode)
      • getChildrenReverse

        public Iterable<Tree> getChildrenReverse(Tree node)
      • getChildren

        public Iterable<Tree> getChildren(Tree node)