Object-oriented Parser System
v3.6

oops3
Class Parser.Literal

Object
  extended by AbstractCollection<E>
      extended by AbstractList<Parser.Node>
          extended by Parser.Node
              extended by Parser.Terminal
                  extended by 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.
 
Fields inherited from class Parser.Node
lookahead, position
 
Fields inherited from class AbstractList
modCount
 
Constructor Summary
protected Parser.Literal(int position, String value, int symbol, int lookahead)
           
 
Method Summary
 int getSymbol()
          return the representation, i.e., a bit number in getLookahead().
 String getValue()
           
 Object visit(Visitor visitor)
          implements divide and conquer for Visitor.
 
Methods inherited from class Parser.Node
get, getLookahead, getPosition, size
 
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

value

protected final String value
the literal value, internalized.


symbol

protected final int symbol
the numerical encoding.

Constructor Detail

Parser.Literal

protected Parser.Literal(int position,
                         String value,
                         int symbol,
                         int lookahead)
Method Detail

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


(c) 2008 Axel T. Schreiner