oops3
Class Parser.Literal
Object
AbstractCollection<E>
AbstractList<Parser.Node>
Parser.Node
Parser.Terminal
Parser.Literal
- All Implemented Interfaces:
- Serializable, Iterable<Parser.Node>, Collection<Parser.Node>, List<Parser.Node>
- Enclosing class:
- Parser
public class Parser.Literal
- extends Parser.Terminal
represents a literal input, not to be collected.
All instances can be found in Parser.literals.
- See Also:
- Serialized Form
|
Field Summary |
protected int |
symbol
the numerical encoding. |
protected String |
value
the literal value, internalized. |
| Methods inherited from class AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
value
protected final String value
- the literal value, internalized.
symbol
protected final int symbol
- the numerical encoding.
Parser.Literal
protected Parser.Literal(int position,
String value,
int symbol,
int lookahead)
getValue
public String getValue()
getSymbol
public int getSymbol()
- Description copied from class:
Parser.Terminal
- return the representation, i.e., a bit number in
getLookahead().
- Specified by:
getSymbol in class Parser.Terminal
visit
public Object visit(Visitor visitor)
- Description copied from class:
Parser.Node
- implements divide and conquer for
Visitor.
Body must be return visitor.visit(this);.
- Overrides:
visit in class Parser.Terminal