|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Item
interface represents a discrete position or
progress along the right hand side of a Production
.
Method Summary | |
IntSet |
getFirstSet()
Return a IntSet of Item s over the
FIRST(beta, a); |
int |
getID()
Returns the unique allocated ID for this Item . |
Production |
getProduction()
Returns the Production to which this
Item is associated. |
boolean |
hasNext()
Returns true if the dot is not after the last
symbol in the Production . |
boolean |
hasPrevious()
Returns true if the dot is not before the first
symbol in the Production . |
LR1Item |
lookahead(Terminal lookahead)
Returns an LR1Item corresponding to this core
Item with the given lookahead. |
Item |
nextItem()
Returns the Item which represents moving the dot
forward one symbol. |
GrammarSymbol |
nextSymbol()
Returns the GrammarSymbol b where [a dot b]. |
Item |
previousItem()
Returns the Item which represents moving the dot
backwards one symbol. |
GrammarSymbol |
previousSymbol()
Returns the GrammarSymbol a where [a dot b]. |
Method Detail |
public int getID()
Item
.public Production getProduction()
Production
to which this
Item
is associated.public boolean hasNext()
true
if the dot is not after the last
symbol in the Production
.public boolean hasPrevious()
true
if the dot is not before the first
symbol in the Production
.public Item nextItem()
Item
which represents moving the dot
forward one symbol. If there is no such Item
(ie
the dot is already at the end), null
is returned.public Item previousItem()
Item
which represents moving the dot
backwards one symbol. If there is no such Item
(ie the dot is already at the beginning), null
is
returned.public GrammarSymbol nextSymbol()
GrammarSymbol
b where [a dot b].public GrammarSymbol previousSymbol()
GrammarSymbol
a where [a dot b].public IntSet getFirstSet()
IntSet
of Item
s over the
FIRST(beta, a);
public LR1Item lookahead(Terminal lookahead)
LR1Item
corresponding to this core
Item
with the given lookahead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |