Package org.antlr.v4.gui
Class TreeLayoutAdaptor
java.lang.Object
org.antlr.v4.gui.TreeLayoutAdaptor
- All Implemented Interfaces:
org.abego.treelayout.TreeForTreeLayout<Tree>
public class TreeLayoutAdaptor
extends Object
implements org.abego.treelayout.TreeForTreeLayout<Tree>
Adaptor ANTLR trees to
TreeForTreeLayout
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Tree node) getChildrenReverse
(Tree node) getFirstChild
(Tree parentNode) getLastChild
(Tree parentNode) getRoot()
boolean
isChildOfParent
(Tree node, Tree parentNode) boolean
-
Field Details
-
root
-
-
Constructor Details
-
TreeLayoutAdaptor
-
-
Method Details
-
isLeaf
- Specified by:
isLeaf
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
isChildOfParent
- Specified by:
isChildOfParent
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getRoot
- Specified by:
getRoot
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getLastChild
- Specified by:
getLastChild
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getFirstChild
- Specified by:
getFirstChild
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getChildrenReverse
- Specified by:
getChildrenReverse
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-
getChildren
- Specified by:
getChildren
in interfaceorg.abego.treelayout.TreeForTreeLayout<Tree>
-