|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.waxeye.ast.NoChildren<E>
E
- The node types for the AST.public abstract class NoChildren<E extends java.lang.Enum<?>>
A class to represent an AST with no children.
Constructor Summary | |
---|---|
NoChildren(E type)
Creates a new NoChildren AST. |
Method Summary | |
---|---|
java.lang.String |
childrenAsString()
Treats the children of the AST as IChar's and concatenates their values into a String. |
java.util.List<IAST<E>> |
getChildren()
Returns a new empty list since this node doesn't allow children. |
Position |
getPosition()
Returns the position. |
E |
getType()
Returns the type. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.waxeye.ast.IAST |
---|
acceptASTVisitor |
Constructor Detail |
---|
public NoChildren(E type)
type
- The type of the AST.Method Detail |
---|
public final int hashCode()
hashCode
in class java.lang.Object
public final java.util.List<IAST<E>> getChildren()
getChildren
in interface IAST<E extends java.lang.Enum<?>>
public final Position getPosition()
null
if the AST doesn't have a position set.
getPosition
in interface IAST<E extends java.lang.Enum<?>>
public final E getType()
getType
in interface IAST<E extends java.lang.Enum<?>>
public final java.lang.String childrenAsString()
childrenAsString
in interface IAST<E extends java.lang.Enum<?>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |