Node - - the type of nodes in the tree, a Node is attached to the root of each subtree.public interface ParseTree<Node>
Nodes which can be traversed.
The tree is a Node and a(n array of) children (if there are no children this must be a zero-length array and must not be null).
Each child in the array is a ParseTree<Node>.
| Modifier and Type | Method and Description |
|---|---|
Node[] |
getChildNodes()
Get the nodes of the immediate children of the root of the tree.
|
ParseTree<Node>[] |
getChildren()
Get the immediate children of the root of the tree.
|
Node |
getNode() |
int |
getNumberOfChildren()
Convenience method to avoid creating children prematurely.
|
Node getNode()
int getNumberOfChildren()
getChildren().length.ParseTree<Node>[] getChildren()
Node[] getChildNodes()
Nodes.Copyright © 2023. All rights reserved.