![]() |
GrammarScope
4.0.0
|


Classes | |
| class | BreadthFirstTreeNodes |
| class | DepthFirstPostOrderTreeNodes |
| class | DepthFirstPreOrderTreeNodes |
| class | TreeIterator |
| class | TreeNodesByLevel |
Public Member Functions | |
| BasicTree () | |
| abstract String | getId () |
| BasicTree< T > | getParent () |
| List< T > | getChildren () |
| T | getNode () |
| int | depth () |
| String | toString () |
| String | toString (final String indent) |
Public Member Functions inherited from grammarscope.glue.TreeWalker< N, T >.ITree< N > | |
| ITree (final N n) | |
| abstract Collection< ITree< N > > | children () |
Protected Attributes | |
| BasicTree< T > | parent |
| List< T > | children |
Private Member Functions | |
| String | toCompactString () |
Static Private Attributes | |
| static final long | serialVersionUID = -432926325048479814L |
Additional Inherited Members | |
Public Attributes inherited from grammarscope.glue.TreeWalker< N, T >.ITree< N > | |
| final N | node |
Basic tree skeleton
| <T> | tree node type |
| grammarscope.artifacts.BasicTree< T extends BasicTree< T >.BasicTree | ( | ) |
Constructor
| int grammarscope.artifacts.BasicTree< T extends BasicTree< T >.depth | ( | ) |
Finds the depth of the tree. The depth is defined as the length of the longest path from this node to a leaf node. Leaf nodes have depth zero.
| List<T> grammarscope.artifacts.BasicTree< T extends BasicTree< T >.getChildren | ( | ) |
|
abstract |
Get node id (each type instance will manage its own id)
| T grammarscope.artifacts.BasicTree< T extends BasicTree< T >.getNode | ( | ) |
Get node cast to type
| BasicTree<T> grammarscope.artifacts.BasicTree< T extends BasicTree< T >.getParent | ( | ) |
Get parent
|
private |
Get compact string
| String grammarscope.artifacts.BasicTree< T extends BasicTree< T >.toString | ( | ) |
| String grammarscope.artifacts.BasicTree< T extends BasicTree< T >.toString | ( | final String | indent | ) |
Get string
| indent | indentation |
|
protected |
List of children nodes
|
protected |
Parent node
|
staticprivate |
1.8.17