com.inxar.syntacs.analyzer
Class ListSymbol
java.lang.Object
|
+--com.inxar.syntacs.analyzer.AbstractSymbol
|
+--com.inxar.syntacs.analyzer.ListSymbol
- All Implemented Interfaces:
- Arboreal, Symbol
- public class ListSymbol
- extends AbstractSymbol
Concrete implementation of Symbol
which uses a list.
Field Summary |
List |
list
The value of the symbol Symbol represented as an
Object . |
Constructor Summary |
ListSymbol(int type,
Object value)
Constructs the ListSymbol with the given
type and given Object value as the first list item. |
ListSymbol(Object value)
Constructs the ListSymbol with the given
Object value as the first List item. |
list
public List list
- The value of the symbol
Symbol
represented as an
Object
. This might be a String
for
identifier tokens or an Integer
object for integer
literals.
ListSymbol
public ListSymbol(Object value)
- Constructs the
ListSymbol
with the given
Object
value as the first List item.
ListSymbol
public ListSymbol(int type,
Object value)
- Constructs the
ListSymbol
with the given
type and given Object
value as the first list item.
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