Package org.antlr.v4.gui
Class TreeLayoutAdaptor
- java.lang.Object
-
- org.antlr.v4.gui.TreeLayoutAdaptor
-
-
Constructor Summary
Constructors Constructor Description TreeLayoutAdaptor(Tree root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Tree>
getChildren(Tree node)
Iterable<Tree>
getChildrenReverse(Tree node)
Tree
getFirstChild(Tree parentNode)
Tree
getLastChild(Tree parentNode)
Tree
getRoot()
boolean
isChildOfParent(Tree node, Tree parentNode)
boolean
isLeaf(Tree node)
-
-
-
Constructor Detail
-
TreeLayoutAdaptor
public TreeLayoutAdaptor(Tree root)
-
-
Method Detail
-
isLeaf
public boolean isLeaf(Tree node)
- Specified by:
isLeaf
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
isChildOfParent
public boolean isChildOfParent(Tree node, Tree parentNode)
- Specified by:
isChildOfParent
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getRoot
public Tree getRoot()
- Specified by:
getRoot
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getLastChild
public Tree getLastChild(Tree parentNode)
- Specified by:
getLastChild
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getFirstChild
public Tree getFirstChild(Tree parentNode)
- Specified by:
getFirstChild
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getChildrenReverse
public Iterable<Tree> getChildrenReverse(Tree node)
- Specified by:
getChildrenReverse
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
-