Public Member Functions | |
void | addAlternativeElement (AlternativeElement e) |
Alternative | currentAlt () |
AlternativeElement | currentElement () |
Package Attributes | |
AlternativeBlock | block |
int | altNum |
BlockEndElement | blockEnd |
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."
void antlr.BlockContext.addAlternativeElement | ( | AlternativeElement | e | ) |
Reimplemented in antlr.TreeBlockContext.
References antlr.Alternative.addElement(), and antlr.BlockContext.currentAlt().
Referenced by antlr.MakeGrammar.addElementToCurrentAlt().
Alternative antlr.BlockContext.currentAlt | ( | ) |
References antlr.AlternativeBlock.alternatives, antlr.BlockContext.altNum, antlr.BlockContext.block, and antlr.collections.impl.Vector.elementAt().
Referenced by antlr.BlockContext.addAlternativeElement(), antlr.BlockContext.currentElement(), antlr.MakeGrammar.endExceptionSpec(), antlr.MakeGrammar.endSubRule(), antlr.MakeGrammar.refSemPred(), and antlr.MakeGrammar.refTreeSpecifier().
AlternativeElement antlr.BlockContext.currentElement | ( | ) |
References antlr.BlockContext.currentAlt(), and antlr.Alternative.tail.
Referenced by antlr.MakeGrammar.refElementOption().
int antlr.BlockContext.altNum [package] |
AlternativeBlock antlr.BlockContext.block [package] |
Referenced by antlr.TreeBlockContext.addAlternativeElement(), antlr.MakeGrammar.beginAlt(), antlr.MakeGrammar.beginChildList(), antlr.MakeGrammar.beginSubRule(), antlr.MakeGrammar.beginTree(), antlr.BlockContext.currentAlt(), antlr.MakeGrammar.defineRuleName(), antlr.MakeGrammar.endChildList(), antlr.MakeGrammar.endExceptionSpec(), antlr.MakeGrammar.endRule(), antlr.MakeGrammar.endSubRule(), antlr.MakeGrammar.endTree(), antlr.MakeGrammar.noAutoGenSubRule(), antlr.MakeGrammar.oneOrMoreSubRule(), antlr.MakeGrammar.optionalSubRule(), antlr.MakeGrammar.refAction(), antlr.MakeGrammar.refArgAction(), antlr.MakeGrammar.refInitAction(), antlr.MakeGrammar.refReturnAction(), antlr.MakeGrammar.setSubruleOption(), antlr.MakeGrammar.setUserExceptions(), antlr.MakeGrammar.synPred(), and antlr.MakeGrammar.zeroOrMoreSubRule().
BlockEndElement antlr.BlockContext.blockEnd [package] |