Package org.antlr.v4.codegen.model
Class CodeBlockForOuterMostAlt
java.lang.Object
org.antlr.v4.codegen.model.OutputModelObject
org.antlr.v4.codegen.model.SrcOp
org.antlr.v4.codegen.model.decl.CodeBlock
org.antlr.v4.codegen.model.CodeBlockForAlt
org.antlr.v4.codegen.model.CodeBlockForOuterMostAlt
The code associated with the outermost alternative of a rule.
Sometimes we might want to treat them differently in the
code generation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe alternative.The label for the alternative; or null if the alternative is not labeled.Fields inherited from class org.antlr.v4.codegen.model.decl.CodeBlock
codeBlockLevel, locals, ops, preamble, treeLevelFields inherited from class org.antlr.v4.codegen.model.SrcOp
enclosingBlock, enclosingRuleRunction, uniqueIDFields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.antlr.v4.codegen.model.decl.CodeBlock
addLocalDecl, addOp, addOps, addPreambleOp, insertOpMethods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
Field Details
-
altLabel
The label for the alternative; or null if the alternative is not labeled. -
alt
The alternative.
-
-
Constructor Details
-
CodeBlockForOuterMostAlt
-