|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.grammar.context_free.CFProduction
Standard Production
implementation.
Method Summary | |
Production |
add(GrammarSymbol grammarSymbol)
Concatenates the given GrammarSymbol to the end of
this Production sequence. |
IntArray |
getGrammarSymbols()
Returns an IntArray for the right hand side of
this Production . |
int |
getID()
Gets the globally allocated identifier for this Production . |
Item |
getInitialItem()
Returns the first Item in the
Production , A := *ab. |
NonTerminal |
getNonTerminal()
Returns the NonTerminal defined as the left hand
side of this Production . |
int |
length()
Returns the number of GrammarSymbols on the right
hand side. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getID()
Production
Production
.getID
in interface Production
public Production add(GrammarSymbol grammarSymbol)
Production
GrammarSymbol
to the end of
this Production
sequence. The
Production
object is returned simply to support a
convenient java.lang.StringBuffer style of coding.
- Specified by:
add
in interface Production
public IntArray getGrammarSymbols()
Production
IntArray
for the right hand side of
this Production
. Each member in the array is
the ID of a GrammarSymbol
.getGrammarSymbols
in interface Production
public Item getInitialItem()
Production
Item
in the
Production
, A := *ab.getInitialItem
in interface Production
public NonTerminal getNonTerminal()
Production
NonTerminal
defined as the left hand
side of this Production
.getNonTerminal
in interface Production
public int length()
Production
GrammarSymbols
on the right
hand side. This has the same effect as
getGrammarSymbols().length()
.length
in interface Production
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |