Top Description Fields Constructors Methods
org.antlr.v4.codegen

public abstract Class DefaultOutputModelFactory

extends BlankOutputModelFactory
Class Inheritance
Known Direct Subclasses
org.antlr.v4.codegen.LexerFactory, org.antlr.v4.codegen.ParserFactory
Imports
org.antlr.v4.codegen.model.Action, .CodeBlockForOuterMostAlt, .OutputModelObject, .RuleFunction, .SrcOp, org.antlr.v4.codegen.model.decl.CodeBlock, .Decl, org.antlr.v4.tool.Alternative, .Grammar, .Rule, org.stringtemplate.v4.ST, .STGroup, java.util.ArrayList, .Arrays, .Collection, .List

Create output objects for elements *within* rule functions except buildOutputModel() which builds outer/root model object and any objects such as RuleFunction that surround elements in rule functions.

Field Summary

Modifier and TypeField and Description
public OutputModelController
public final Grammar
g

public final CodeGenerator

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public int
public OutputModelController
public CodeBlock
public Alternative
public CodeBlockForOuterMostAlt
public RuleFunction
public CodeGenerator
public Grammar
public OutputModelObject
public int
public static List<SrcOp>
list(SrcOp... values)

public static List<SrcOp>
list(Collection<? extends SrcOp> values)

public List<SrcOp>
public void
Inherited from org.antlr.v4.codegen.BlankOutputModelFactory:
actionalternativeepsilonfinishAlternativegetChoiceBlockgetComplexChoiceBlockgetComplexEBNFBlockgetEBNFBlockgetLL1ChoiceBlockgetLL1EBNFBlockgetLL1TestlexerlexerFileneedsImplicitLabelparserparserFileruleruleRefsempredsetstringReftokenRefwildcard

Field Detail

controllerback to summary
public OutputModelController controller
gback to summary
public final Grammar g
genback to summary
public final CodeGenerator gen

Constructor Detail

DefaultOutputModelFactoryback to summary
protected DefaultOutputModelFactory(CodeGenerator gen)

Method Detail

getCodeBlockLevelback to summary
public int getCodeBlockLevel()

Implements org.antlr.v4.codegen.OutputModelFactory.getCodeBlockLevel.

Annotations
@Override
getControllerback to summary
public OutputModelController getController()

Implements org.antlr.v4.codegen.OutputModelFactory.getController.

Annotations
@Override
getCurrentBlockback to summary
public CodeBlock getCurrentBlock()

Implements org.antlr.v4.codegen.OutputModelFactory.getCurrentBlock.

Annotations
@Override
getCurrentOuterMostAltback to summary
public Alternative getCurrentOuterMostAlt()

Implements org.antlr.v4.codegen.OutputModelFactory.getCurrentOuterMostAlt.

Annotations
@Override
getCurrentOuterMostAlternativeBlockback to summary
public CodeBlockForOuterMostAlt getCurrentOuterMostAlternativeBlock()

Implements org.antlr.v4.codegen.OutputModelFactory.getCurrentOuterMostAlternativeBlock.

Annotations
@Override
getCurrentRuleFunctionback to summary
public RuleFunction getCurrentRuleFunction()

Implements org.antlr.v4.codegen.OutputModelFactory.getCurrentRuleFunction.

Annotations
@Override
getGeneratorback to summary
public CodeGenerator getGenerator()

Implements org.antlr.v4.codegen.OutputModelFactory.getGenerator.

Annotations
@Override
getGrammarback to summary
public Grammar getGrammar()

Implements org.antlr.v4.codegen.OutputModelFactory.getGrammar.

Annotations
@Override
getRootback to summary
public OutputModelObject getRoot()

Implements org.antlr.v4.codegen.OutputModelFactory.getRoot.

Annotations
@Override
getTreeLevelback to summary
public int getTreeLevel()

Implements org.antlr.v4.codegen.OutputModelFactory.getTreeLevel.

Annotations
@Override
listback to summary
public static List<SrcOp> list(SrcOp... values)
listback to summary
public static List<SrcOp> list(Collection<? extends SrcOp> values)
rulePostambleback to summary
public List<SrcOp> rulePostamble(RuleFunction function, Rule r)

Overrides org.antlr.v4.codegen.BlankOutputModelFactory.rulePostamble.

Implements org.antlr.v4.codegen.OutputModelFactory.rulePostamble.

Annotations
@Override
setControllerback to summary
public void setController(OutputModelController controller)

Implements org.antlr.v4.codegen.OutputModelFactory.setController.

Annotations
@Override