|
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.Type
public class Parser.Type
represents type information.
| Field Summary | |
|---|---|
boolean |
flatten
true if factory method can squeeze this rule out in favor of a single descendant. |
protected String[] |
interfaces
interface names. |
String |
name
empty string, class name (or void). |
| Fields inherited from class Parser.Node |
|---|
position |
| Fields inherited from class AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
Parser.Type(int position,
String name,
boolean flatten,
String... interfaces)
assumed not null, but may be empty. |
| Method Summary | |
|---|---|
String |
getInterfaces()
returns empty string or comma-preceded list of names. |
boolean |
isPlain()
true if type is just a name without interfaces or options. |
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 String name
protected final String[] interfaces
public final boolean flatten
| Constructor Detail |
|---|
protected Parser.Type(int position,
String name,
boolean flatten,
String... interfaces)
| Method Detail |
|---|
public String getInterfaces()
public boolean isPlain()
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 | |||||||||