TreeForTreeLayout.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterable | getChildren(Tree
[!isLeaf(parentNode)] node)Implements org. |
| public Iterable | getChildrenReverse(Tree
[!isLeaf(parentNode)] node)Implements org. |
| public Tree | getFirstChild(Tree
[!isLeaf(parentNode)] parentNode)Implements org. |
| public Tree | getLastChild(Tree
[!isLeaf(parentNode)] parentNode)Implements org. |
| public Tree | getRoot()
Implements org. |
| public boolean | isChildOfParent(Tree
Implements org. |
| public boolean | isLeaf(Tree
Implements org. |
| root | back to summary |
|---|---|
| private Tree root | |
| TreeLayoutAdaptor | back to summary |
|---|---|
| public TreeLayoutAdaptor(Tree root) | |
| getChildren | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. Returns the children of a parent node. Time Complexity: O(1) | |
| getChildrenReverse | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. Returns the children of a parent node, in reverse order. Time Complexity: O(1) | |
| getFirstChild | back to summary |
|---|---|
| public Tree getFirstChild(Tree parentNode) Implements org. Doc from org. Returns the first child of a parent node. Time Complexity: O(1) | |
| getLastChild | back to summary |
|---|---|
| public Tree getLastChild(Tree parentNode) Implements org. Doc from org. Returns the last child of a parent node. Time Complexity: O(1) | |
| getRoot | back to summary |
|---|---|
| public Tree getRoot() Implements org. Doc from org. Returns the the root of the tree. Time Complexity: O(1) | |
| isChildOfParent | back to summary |
|---|---|
| public boolean isChildOfParent(Tree node, Tree parentNode) Implements org. Doc from org. Tells if a node is a child of a given parentNode. Time Complexity: O(1) | |
| isLeaf | back to summary |
|---|---|
| public boolean isLeaf(Tree node) Implements org. Doc from org. Tells if a node is a leaf in the tree. Time Complexity: O(1) | |
| Access | Constructor and Description |
|---|---|
| public |
| tree | back to summary |
|---|---|
| private final Tree tree | |
| AntlrTreeChildrenIterable | back to summary |
|---|---|
| public AntlrTreeChildrenIterable(Tree tree) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| Access | Constructor and Description |
|---|---|
| public |
| tree | back to summary |
|---|---|
| private final Tree tree | |
| AntlrTreeChildrenReverseIterable | back to summary |
|---|---|
| public AntlrTreeChildrenReverseIterable(Tree tree) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |