|
Object-oriented Parser System v3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractCollection<E>
AbstractList<Parser.Node>
Parser.Node
public abstract class Parser.Node
basic behavior for the grammar tree:
an immutable List with lookahead.
| Field Summary | |
|---|---|
protected int |
lookahead
references Parser.lookaheads. |
protected int |
position
position associated with node. |
| Fields inherited from class AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
Parser.Node(int position,
int lookahead)
|
| Method Summary | |
|---|---|
Parser.Node |
get(int index)
needs to be overridden when there are descendants. |
BitSet |
getLookahead()
throws an exception if Lookahead has not been run
or if lookahead was initialized out of range. |
int |
getPosition()
|
int |
size()
needs to be overridden when there are descendants. |
abstract Object |
visit(Visitor visitor)
implements divide and conquer for Visitor. |
| 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 |
|---|
protected int position
Rule.init after a forward declaration.
protected final int lookahead
Parser.lookaheads.
| Constructor Detail |
|---|
protected Parser.Node(int position,
int lookahead)
| Method Detail |
|---|
public int getPosition()
public BitSet getLookahead()
Lookahead has not been run
or if lookahead was initialized out of range.
Parser.Patternpublic Parser.Node get(int index)
get in interface List<Parser.Node>get in class AbstractList<Parser.Node>IndexOutOfBoundsExceptionpublic int size()
size in interface Collection<Parser.Node>size in interface List<Parser.Node>size in class AbstractCollection<Parser.Node>public abstract Object visit(Visitor visitor)
Visitor.
Body must be return visitor.visit(this);.
|
(c) 2008 Axel T. Schreiner |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||