Package org.antlr.v4.codegen.model
Class LL1OptionalBlock
-
public class LL1OptionalBlock extends LL1AltBlock
An optional block is just an alternative block where the last alternative is epsilon. The analysis takes care of adding to the empty alternative. (A | B | C)?
-
-
Field Summary
-
Fields inherited from class org.antlr.v4.codegen.model.RuleElement
stateNumber
-
Fields inherited from class org.antlr.v4.codegen.model.SrcOp
enclosingBlock, enclosingRuleRunction, uniqueID
-
Fields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory
-
-
Constructor Summary
Constructors Constructor Description LL1OptionalBlock(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts)
-
Method Summary
-
Methods inherited from class org.antlr.v4.codegen.model.Choice
addCodeForLookaheadTempVar, addPreambleOp, getAltLookaheadAsStringLists, getThrowNoViableAlt
-
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
-
-
-
Constructor Detail
-
LL1OptionalBlock
public LL1OptionalBlock(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts)
-
-