|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BlockContext
class BlockContext
BlockContext stores the information needed when creating an alternative (list of elements). Entering a subrule requires that we save this state as each block of alternatives requires state such as "tail of current alternative."
Field Summary | |
---|---|
(package private) int |
altNum
|
(package private) AlternativeBlock |
block
|
(package private) BlockEndElement |
blockEnd
|
Constructor Summary | |
---|---|
BlockContext()
|
Method Summary | |
---|---|
void |
addAlternativeElement(AlternativeElement e)
|
Alternative |
currentAlt()
|
AlternativeElement |
currentElement()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
AlternativeBlock block
int altNum
BlockEndElement blockEnd
Constructor Detail |
---|
BlockContext()
Method Detail |
---|
public void addAlternativeElement(AlternativeElement e)
public Alternative currentAlt()
public AlternativeElement currentElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |