com.inxar.syntacs.analyzer
Class CharSymbol

java.lang.Object
  |
  +--com.inxar.syntacs.analyzer.AbstractSymbol
        |
        +--com.inxar.syntacs.analyzer.CharSymbol
All Implemented Interfaces:
Arboreal, Symbol

public class CharSymbol
extends AbstractSymbol

Concrete implementation of Symbol which internally contains a char.


Field Summary
 char value
          The char value of the symbol Symbol.
 
Constructor Summary
CharSymbol(char value)
          Constructs the CharSymbol with the given char value.
CharSymbol(int type, char value)
          Constructs the CharSymbol with the given type and char value.
 
Method Summary
 boolean equals(Object other)
           
 String toString()
           
 void toTree(Tree t)
          Writes state to the given Tree.
 
Methods inherited from class com.inxar.syntacs.analyzer.AbstractSymbol
getSymbolType, setSymbolType
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public char value
The char value of the symbol Symbol.
Constructor Detail

CharSymbol

public CharSymbol(char value)
Constructs the CharSymbol with the given char value.

CharSymbol

public CharSymbol(int type,
                  char value)
Constructs the CharSymbol with the given type and char value.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toTree

public void toTree(Tree t)
Description copied from interface: Arboreal
Writes state to the given Tree.

equals

public boolean equals(Object other)
Overrides:
equals in class Object