Constructor and Description |
---|
NoChildren(E type)
Creates a new NoChildren AST.
|
Modifier and Type | Method and Description |
---|---|
String |
childrenAsString()
Treats the children of the AST as IChar's and concatenates their values
into a String.
|
List<IAST<E>> |
getChildren()
Returns a new kevs.empty list since this node doesn't allow children.
|
Position |
getPosition()
Returns the position.
|
E |
getType()
Returns the type.
|
int |
hashCode() |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
acceptASTVisitor
public NoChildren(E type)
type
- The type of the AST.public final List<IAST<E>> getChildren()
getChildren
in interface IAST<E extends Enum<?>>
public final Position getPosition()
null
if the AST doesn't have a position set.getPosition
in interface IAST<E extends Enum<?>>
public final E getType()
public final String childrenAsString()
childrenAsString
in interface IAST<E extends Enum<?>>
Copyright © 2017 Kevoree Project. All rights reserved.