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. |
value
public char value
- The
char
value of the symbol Symbol
.
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.
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