org.antlr.v4.codegen.model
public abstract Class Choice
extends RuleElement
- Class Inheritance
-
- Known Direct Subclasses
- org.antlr.v4.codegen.model.LL1Choice, org.antlr.v4.codegen.model.LL1Loop, org.antlr.v4.codegen.model.Loop, org.antlr.v4.codegen.model.AltBlock
- Imports
- org.antlr.v4.codegen.OutputModelFactory, .Target, org.antlr.v4.codegen.model.decl.Decl, .TokenTypeDecl, org.antlr.v4.misc.Utils, org.antlr.v4.runtime.misc.IntegerList, .IntervalSet, org.antlr.v4.tool.Grammar, org.antlr.v4.tool.ast.GrammarAST, java.util.ArrayList, .List
The class hierarchy underneath SrcOp is pretty deep but makes sense that,
for example LL1StarBlock is a kind of LL1Loop which is a kind of Choice.
The problem is it's impossible to figure
out how to construct one of these deeply nested objects because of the
long super constructor call chain. Instead, I decided to in-line all of
this and then look for opportunities to re-factor code into functions.
It makes sense to use a class hierarchy to share data fields, but I don't
think it makes sense to factor code using super constructors because
it has too much work to do.
Constructor Summary
| Access | Constructor and Description
|
|---|
| public |
|