antlr

Class BlockContext

class BlockContext extends 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
intaltNum
AlternativeBlockblock
BlockEndElementblockEnd
Method Summary
voidaddAlternativeElement(AlternativeElement e)
AlternativecurrentAlt()
AlternativeElementcurrentElement()

Field Detail

altNum

int altNum

block

AlternativeBlock block

blockEnd

BlockEndElement blockEnd

Method Detail

addAlternativeElement

public void addAlternativeElement(AlternativeElement e)

currentAlt

public Alternative currentAlt()

currentElement

public AlternativeElement currentElement()