Package antlr
Class BlockContext
- java.lang.Object
-
- antlr.BlockContext
-
- Direct Known Subclasses:
TreeBlockContext
class BlockContext extends java.lang.ObjectBlockContext 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
Fields Modifier and Type Field Description (package private) intaltNum(package private) AlternativeBlockblock(package private) BlockEndElementblockEnd
-
Constructor Summary
Constructors Constructor Description BlockContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlternativeElement(AlternativeElement e)AlternativecurrentAlt()AlternativeElementcurrentElement()
-
-
-
Field Detail
-
block
AlternativeBlock block
-
altNum
int altNum
-
blockEnd
BlockEndElement blockEnd
-
-
Method Detail
-
addAlternativeElement
public void addAlternativeElement(AlternativeElement e)
-
currentAlt
public Alternative currentAlt()
-
currentElement
public AlternativeElement currentElement()
-
-