antlr

Class BlockContext

Known Direct Subclasses:
TreeBlockContext

(package private) class BlockContext
extends java.lang.Object

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

Method Summary

void
addAlternativeElement(AlternativeElement e)
Alternative
currentAlt()
AlternativeElement
currentElement()

Field Details

altNum

(package private)  int altNum

block

(package private)  AlternativeBlock block

blockEnd

(package private)  BlockEndElement blockEnd

Method Details

addAlternativeElement

public void addAlternativeElement(AlternativeElement e)

currentAlt

public Alternative currentAlt()

currentElement

public AlternativeElement currentElement()