|
Language Processing v2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractCollection<E>
AbstractList<Parser.Node>
Parser.Node
Parser.Pattern
public class Parser.Pattern
represents an optionally typed token terminal.
All instances can be found in Parser.patterns.
| Field Summary | |
|---|---|
String |
name
unique name, cannot be error. |
int |
token
unique symbol number, index into Parser.yyNames. |
Parser.Type |
type
type (if not null), assumed plain. |
String |
value
internalized representation. |
| Fields inherited from class Parser.Node |
|---|
position |
| Fields inherited from class AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
Parser.Pattern(int position,
Parser.Type type,
String name,
String value)
assumed unique, new, and within range, adds itself to Parser.patterns and Parser.yyNames,
manages Parser.defined. |
| Method Summary | |
|---|---|
boolean |
noType()
true if there is a null or void|(java.lang.)? |
String |
toString()
|
void |
visit(Visitor visitor)
implements divide and conquer for Visitor. |
| Methods inherited from class Parser.Node |
|---|
get, 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 |
| 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 |
|---|
public final Parser.Type type
public final String name
error.
public final String value
public final int token
Parser.yyNames.
Invalid if noType() is true.
| Constructor Detail |
|---|
protected Parser.Pattern(int position,
Parser.Type type,
String name,
String value)
Parser.patterns and Parser.yyNames,
manages Parser.defined.
value - must be internalized.| Method Detail |
|---|
public boolean noType()
public void visit(Visitor visitor)
Parser.NodeVisitor.
Body must be visitor.visit(this);.
visit in class Parser.Nodepublic String toString()
toString in class AbstractCollection<Parser.Node>
|
(c) 2008 Axel T. Schreiner |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||