public abstract class AstNode extends Object implements Iterable<Object>
Constructor and Description |
---|
AstNode() |
Modifier and Type | Method and Description |
---|---|
Object[] |
children()
Retrieves the immediate children of this AST.
|
Iterator<Object> |
iterator() |
<T extends AstNode> |
make(Object[] args)
Constructs an AST node whose type is equal to this node's type with the
provided child nodes.
|
String |
toString()
Returns the
String representation of this AST. |
public final Object[] children()
public final <T extends AstNode> T make(Object[] args)
args
- The child nodes; no changes to the array will be made.{@link
- InstantiationError} if unsuccessful.