org.waxeye.ast
Interface IAST<E extends java.lang.Enum<?>>

Type Parameters:
E - The node types for the AST.
All Known Implementing Classes:
AST, Char, Empty, NoChildren

public interface IAST<E extends java.lang.Enum<?>>

An interface for an AST node.

Author:
Orlando Hill

Method Summary
 void acceptASTVisitor(IASTVisitor visitor)
          Accepts the visitor.
 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 the children.
 Position getPosition()
          Returns the position.
 E getType()
          Returns the type.
 

Method Detail

getChildren

java.util.List<IAST<E>> getChildren()
Returns the children.

Returns:
Returns the children.

getPosition

Position getPosition()
Returns the position. Can be null if the AST doesn't have a position set.

Returns:
Returns the position;

getType

E getType()
Returns the type.

Returns:
Returns the type.

acceptASTVisitor

void acceptASTVisitor(IASTVisitor visitor)
Accepts the visitor.

Parameters:
visitor - The visitor to accept.

childrenAsString

java.lang.String childrenAsString()
Treats the children of the AST as IChar's and concatenates their values into a String.

Returns:
The AST's IChar children as a String.


Waxeye Parser Generator