org.waxeye.ast
Class Empty<E extends java.lang.Enum<?>>

java.lang.Object
  extended by org.waxeye.ast.NoChildren<E>
      extended by org.waxeye.ast.Empty<E>
Type Parameters:
E - The node types for the AST.
All Implemented Interfaces:
IAST<E>, IEmpty

public final class Empty<E extends java.lang.Enum<?>>
extends NoChildren<E>
implements IEmpty

A class to represent an empty AST.

Author:
Orlando Hill

Constructor Summary
Empty(E type)
          Creates a new Empty AST.
 
Method Summary
 void acceptASTVisitor(IASTVisitor visitor)
          Accepts the visitor.
 java.lang.String toString()
          
 
Methods inherited from class org.waxeye.ast.NoChildren
childrenAsString, getChildren, getPosition, getType, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Empty

public Empty(E type)
Creates a new Empty AST.

Parameters:
type - The type of the AST.
Method Detail

acceptASTVisitor

public void acceptASTVisitor(IASTVisitor visitor)
Accepts the visitor.

Specified by:
acceptASTVisitor in interface IAST<E extends java.lang.Enum<?>>
Parameters:
visitor - The visitor to accept.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Waxeye Parser Generator