|
Generic Interpreter 0.9 Private API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gi.Grammar.Production
This class implements a
.Production
Field Summary | |
(package private) Object |
nonterminal
The nonterminal on the left-hand side of this Production . |
(package private) int |
number
The number of this Production . |
(package private) Object[] |
phrase
The phrase on the right-hand side of this Production . |
Constructor Summary | |
(package private) |
Grammar.Production(Object nonterminal,
Object[] phrase)
Constructs a Production with a nonterminal and phrase. |
Method Summary | |
String |
toString()
Returns a string representation of this Production . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
final Object nonterminal
The nonterminal on the left-hand side of this Production
.
final int number
The number of this Production
. It is the priority of this Production
when resolving parse conflicts.
final Object[] phrase
The phrase on the right-hand side of this Production
.
Constructor Detail |
Grammar.Production(Object nonterminal, Object[] phrase)
Constructs a Production
with a nonterminal and phrase.
nonterminal
- the nonterminal on the left-hand side.phrase
- the phrase on the right-hand side.Method Detail |
public String toString()
Returns a string representation of this Production
.
toString
in class Object
Production
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |