Package org.antlr.v4.codegen
Class BlankOutputModelFactory
- java.lang.Object
-
- org.antlr.v4.codegen.BlankOutputModelFactory
-
- All Implemented Interfaces:
OutputModelFactory
- Direct Known Subclasses:
DefaultOutputModelFactory
public abstract class BlankOutputModelFactory extends Object implements OutputModelFactory
-
-
Constructor Summary
Constructors Constructor Description BlankOutputModelFactory()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.antlr.v4.codegen.OutputModelFactory
getCodeBlockLevel, getController, getCurrentBlock, getCurrentOuterMostAlt, getCurrentOuterMostAlternativeBlock, getCurrentRuleFunction, getGenerator, getGrammar, getRoot, getTreeLevel, setController
-
-
-
-
Method Detail
-
parserFile
public ParserFile parserFile(String fileName)
- Specified by:
parserFilein interfaceOutputModelFactory
-
parser
public Parser parser(ParserFile file)
- Specified by:
parserin interfaceOutputModelFactory
-
rule
public RuleFunction rule(Rule r)
- Specified by:
rulein interfaceOutputModelFactory
-
rulePostamble
public List<SrcOp> rulePostamble(RuleFunction function, Rule r)
- Specified by:
rulePostamblein interfaceOutputModelFactory
-
lexerFile
public LexerFile lexerFile(String fileName)
- Specified by:
lexerFilein interfaceOutputModelFactory
-
lexer
public Lexer lexer(LexerFile file)
- Specified by:
lexerin interfaceOutputModelFactory
-
alternative
public CodeBlockForAlt alternative(Alternative alt, boolean outerMost)
- Specified by:
alternativein interfaceOutputModelFactory
-
finishAlternative
public CodeBlockForAlt finishAlternative(CodeBlockForAlt blk, List<SrcOp> ops)
- Specified by:
finishAlternativein interfaceOutputModelFactory
-
epsilon
public CodeBlockForAlt epsilon(Alternative alt, boolean outerMost)
- Specified by:
epsilonin interfaceOutputModelFactory
-
ruleRef
public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)
- Specified by:
ruleRefin interfaceOutputModelFactory
-
tokenRef
public List<SrcOp> tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)
- Specified by:
tokenRefin interfaceOutputModelFactory
-
stringRef
public List<SrcOp> stringRef(GrammarAST ID, GrammarAST label)
- Specified by:
stringRefin interfaceOutputModelFactory
-
set
public List<SrcOp> set(GrammarAST setAST, GrammarAST label, boolean invert)
- Specified by:
setin interfaceOutputModelFactory
-
wildcard
public List<SrcOp> wildcard(GrammarAST ast, GrammarAST labelAST)
- Specified by:
wildcardin interfaceOutputModelFactory
-
action
public List<SrcOp> action(ActionAST ast)
- Specified by:
actionin interfaceOutputModelFactory
-
sempred
public List<SrcOp> sempred(ActionAST ast)
- Specified by:
sempredin interfaceOutputModelFactory
-
getChoiceBlock
public Choice getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)
- Specified by:
getChoiceBlockin interfaceOutputModelFactory
-
getEBNFBlock
public Choice getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
- Specified by:
getEBNFBlockin interfaceOutputModelFactory
-
getLL1ChoiceBlock
public Choice getLL1ChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
- Specified by:
getLL1ChoiceBlockin interfaceOutputModelFactory
-
getComplexChoiceBlock
public Choice getComplexChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
- Specified by:
getComplexChoiceBlockin interfaceOutputModelFactory
-
getLL1EBNFBlock
public Choice getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
- Specified by:
getLL1EBNFBlockin interfaceOutputModelFactory
-
getComplexEBNFBlock
public Choice getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
- Specified by:
getComplexEBNFBlockin interfaceOutputModelFactory
-
getLL1Test
public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST)
- Specified by:
getLL1Testin interfaceOutputModelFactory
-
needsImplicitLabel
public boolean needsImplicitLabel(GrammarAST ID, LabeledOp op)
- Specified by:
needsImplicitLabelin interfaceOutputModelFactory
-
-