|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sc3d.apt.sss.v3.Tree.Production
public static class Tree.Production
Represents something constructed using a Grammar.Production from a sequence of smaller things.
Field Summary | |
---|---|
java.lang.String |
name
The name of the Grammar.Production that was used. |
int |
numParts
The number of parts. |
Constructor Summary | |
---|---|
Tree.Production(java.lang.String name,
Tree[] parts)
Constructs a Production. |
Method Summary | |
---|---|
Tree |
get(int index)
Returns the part with index 'index'. |
Tree.NonTerminal |
getNT(int index)
Returns '(NonTerminal)get(index)'. |
Tree.Production |
getP(int index)
Returns '(Production)getNT(index).get()'. |
Tree.Terminal |
getT(int index)
Returns '(Terminal)get(index)'. |
java.lang.String |
toString()
Returns a String representation of this Production. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String name
public final int numParts
Constructor Detail |
---|
public Tree.Production(java.lang.String name, Tree[] parts)
Method Detail |
---|
public Tree get(int index)
public Tree.Terminal getT(int index)
public Tree.NonTerminal getNT(int index)
public Tree.Production getP(int index)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |