Package org.antlr.v4.codegen
Class CodeGeneratorExtension
- java.lang.Object
-
- org.antlr.v4.codegen.CodeGeneratorExtension
-
public class CodeGeneratorExtension extends Object
Filter list of SrcOps and return; default is pass-through filter
-
-
Field Summary
Fields Modifier and Type Field Description OutputModelFactoryfactory
-
Constructor Summary
Constructors Constructor Description CodeGeneratorExtension(OutputModelFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SrcOp>action(List<SrcOp> ops)CodeBlockForAltalternative(CodeBlockForAlt blk, boolean outerMost)CodeBlockForAltepsilon(CodeBlockForAlt blk)CodeBlockForAltfinishAlternative(CodeBlockForAlt blk, boolean outerMost)ChoicegetChoiceBlock(Choice c)ChoicegetEBNFBlock(Choice c)Lexerlexer(Lexer l)LexerFilelexerFile(LexerFile f)booleanneedsImplicitLabel(GrammarAST ID, LabeledOp op)Parserparser(Parser p)ParserFileparserFile(ParserFile f)RuleFunctionrule(RuleFunction rf)List<SrcOp>rulePostamble(List<SrcOp> ops)List<SrcOp>ruleRef(List<SrcOp> ops)List<SrcOp>sempred(List<SrcOp> ops)List<SrcOp>set(List<SrcOp> ops)List<SrcOp>stringRef(List<SrcOp> ops)List<SrcOp>tokenRef(List<SrcOp> ops)List<SrcOp>wildcard(List<SrcOp> ops)
-
-
-
Field Detail
-
factory
public OutputModelFactory factory
-
-
Constructor Detail
-
CodeGeneratorExtension
public CodeGeneratorExtension(OutputModelFactory factory)
-
-
Method Detail
-
parserFile
public ParserFile parserFile(ParserFile f)
-
rule
public RuleFunction rule(RuleFunction rf)
-
alternative
public CodeBlockForAlt alternative(CodeBlockForAlt blk, boolean outerMost)
-
finishAlternative
public CodeBlockForAlt finishAlternative(CodeBlockForAlt blk, boolean outerMost)
-
epsilon
public CodeBlockForAlt epsilon(CodeBlockForAlt blk)
-
needsImplicitLabel
public boolean needsImplicitLabel(GrammarAST ID, LabeledOp op)
-
-