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

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

public final class Char<E extends java.lang.Enum<?>>
extends NoChildren<E>
implements IChar

An AST node with a character.

Author:
Orlando Hill

Constructor Summary
Char(char value, E type)
          Creates a new Char AST.
 
Method Summary
 void acceptASTVisitor(IASTVisitor visitor)
          Accepts the visitor.
 char getValue()
          Gets the character value.
 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

Char

public Char(char value,
            E type)
Creates a new Char AST.

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

getValue

public char getValue()
Gets the character value.

Specified by:
getValue in interface IChar
Returns:
The character value.

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