Package org.antlr.v4.codegen
Interface OutputModelFactory
- All Known Implementing Classes:
BlankOutputModelFactory
,DefaultOutputModelFactory
,LexerFactory
,ParserFactory
public interface OutputModelFactory
-
Method Summary
Modifier and TypeMethodDescriptionalternative
(Alternative alt, boolean outerMost) epsilon
(Alternative alt, boolean outerMost) finishAlternative
(CodeBlockForAlt blk, List<SrcOp> ops) getChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label) int
getComplexChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts) getComplexEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) getEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) getLL1ChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts) getLL1EBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) getLL1Test
(IntervalSet look, GrammarAST blkAST) getRoot()
int
boolean
needsImplicitLabel
(GrammarAST ID, LabeledOp op) parser
(ParserFile file) parserFile
(String fileName) rulePostamble
(RuleFunction function, Rule r) ruleRef
(GrammarAST ID, GrammarAST label, GrammarAST args) set
(GrammarAST setAST, GrammarAST label, boolean invert) void
setController
(OutputModelController controller) stringRef
(GrammarAST ID, GrammarAST label) tokenRef
(GrammarAST ID, GrammarAST label, GrammarAST args) wildcard
(GrammarAST ast, GrammarAST labelAST)
-
Method Details
-
getGrammar
Grammar getGrammar() -
getGenerator
CodeGenerator getGenerator() -
setController
-
getController
OutputModelController getController() -
parserFile
-
parser
-
lexerFile
-
lexer
-
rule
-
rulePostamble
-
alternative
-
finishAlternative
-
epsilon
-
ruleRef
-
tokenRef
-
stringRef
-
set
-
wildcard
-
action
-
sempred
-
getChoiceBlock
-
getEBNFBlock
-
getLL1ChoiceBlock
-
getComplexChoiceBlock
-
getLL1EBNFBlock
-
getComplexEBNFBlock
-
getLL1Test
-
needsImplicitLabel
-
getRoot
OutputModelObject getRoot() -
getCurrentRuleFunction
RuleFunction getCurrentRuleFunction() -
getCurrentOuterMostAlt
Alternative getCurrentOuterMostAlt() -
getCurrentBlock
CodeBlock getCurrentBlock() -
getCurrentOuterMostAlternativeBlock
CodeBlockForOuterMostAlt getCurrentOuterMostAlternativeBlock() -
getCodeBlockLevel
int getCodeBlockLevel() -
getTreeLevel
int getTreeLevel()
-