|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.sc3d.apt.sss.v3.Grammar.Production
public static class Grammar.Production
Represents a production of the grammar. A production gives a way of making a large syntactic thing out of smaller things. Every Production is identified by a 'name'.
| Field Summary | |
|---|---|
java.lang.String |
name
The name of this Production. |
int |
numParts
The number of parts. |
| Constructor Summary | |
|---|---|
Grammar.Production(java.lang.String name,
Grammar[] parts)
Constructs a Production. |
|
| Method Summary | |
|---|---|
Grammar |
get(int index)
Returns the part with index '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 Grammar.Production(java.lang.String name,
Grammar[] parts)
name - the name of this Production.parts - an array of Grammars describing the things that are needed in order to use this Production.
java.lang.IllegalArgumentException - if all of the parts are optional NonTerminals, because SSS forbids a production from matching the empty string. In particular, there must be at least one part.| Method Detail |
|---|
public Grammar get(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 | |||||||