Constructor and Description |
---|
AST(E type,
List<IAST<E>> children,
Position position)
Creates a new AST.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptASTVisitor(IASTVisitor visitor)
Accepts the visitor.
|
String |
childrenAsString()
Treats the children of the AST as IChar's and concatenates their values
into a String.
|
boolean |
equals(Object object) |
List<IAST<E>> |
getChildren()
Returns the children.
|
Position |
getPosition()
Returns the position.
|
E |
getType()
Returns the type.
|
int |
hashCode() |
String |
toString() |
public List<IAST<E>> getChildren()
getChildren
in interface IAST<E extends Enum<?>>
public Position getPosition()
null
if the AST doesn't have a position set.getPosition
in interface IAST<E extends Enum<?>>
public E getType()
public void acceptASTVisitor(IASTVisitor visitor)
acceptASTVisitor
in interface IAST<E extends Enum<?>>
visitor
- The visitor to accept.public final String childrenAsString()
childrenAsString
in interface IAST<E extends Enum<?>>
Copyright © 2017 Kevoree Project. All rights reserved.