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:
parserFile
in interfaceOutputModelFactory
-
parser
public Parser parser(ParserFile file)
- Specified by:
parser
in interfaceOutputModelFactory
-
rule
public RuleFunction rule(Rule r)
- Specified by:
rule
in interfaceOutputModelFactory
-
rulePostamble
public List<SrcOp> rulePostamble(RuleFunction function, Rule r)
- Specified by:
rulePostamble
in interfaceOutputModelFactory
-
lexerFile
public LexerFile lexerFile(String fileName)
- Specified by:
lexerFile
in interfaceOutputModelFactory
-
lexer
public Lexer lexer(LexerFile file)
- Specified by:
lexer
in interfaceOutputModelFactory
-
alternative
public CodeBlockForAlt alternative(Alternative alt, boolean outerMost)
- Specified by:
alternative
in interfaceOutputModelFactory
-
finishAlternative
public CodeBlockForAlt finishAlternative(CodeBlockForAlt blk, List<SrcOp> ops)
- Specified by:
finishAlternative
in interfaceOutputModelFactory
-
epsilon
public CodeBlockForAlt epsilon(Alternative alt, boolean outerMost)
- Specified by:
epsilon
in interfaceOutputModelFactory
-
ruleRef
public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)
- Specified by:
ruleRef
in interfaceOutputModelFactory
-
tokenRef
public List<SrcOp> tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)
- Specified by:
tokenRef
in interfaceOutputModelFactory
-
stringRef
public List<SrcOp> stringRef(GrammarAST ID, GrammarAST label)
- Specified by:
stringRef
in interfaceOutputModelFactory
-
set
public List<SrcOp> set(GrammarAST setAST, GrammarAST label, boolean invert)
- Specified by:
set
in interfaceOutputModelFactory
-
wildcard
public List<SrcOp> wildcard(GrammarAST ast, GrammarAST labelAST)
- Specified by:
wildcard
in interfaceOutputModelFactory
-
action
public List<SrcOp> action(ActionAST ast)
- Specified by:
action
in interfaceOutputModelFactory
-
sempred
public List<SrcOp> sempred(ActionAST ast)
- Specified by:
sempred
in interfaceOutputModelFactory
-
getChoiceBlock
public Choice getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)
- Specified by:
getChoiceBlock
in interfaceOutputModelFactory
-
getEBNFBlock
public Choice getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
- Specified by:
getEBNFBlock
in interfaceOutputModelFactory
-
getLL1ChoiceBlock
public Choice getLL1ChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
- Specified by:
getLL1ChoiceBlock
in interfaceOutputModelFactory
-
getComplexChoiceBlock
public Choice getComplexChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
- Specified by:
getComplexChoiceBlock
in interfaceOutputModelFactory
-
getLL1EBNFBlock
public Choice getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
- Specified by:
getLL1EBNFBlock
in interfaceOutputModelFactory
-
getComplexEBNFBlock
public Choice getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
- Specified by:
getComplexEBNFBlock
in interfaceOutputModelFactory
-
getLL1Test
public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST)
- Specified by:
getLL1Test
in interfaceOutputModelFactory
-
needsImplicitLabel
public boolean needsImplicitLabel(GrammarAST ID, LabeledOp op)
- Specified by:
needsImplicitLabel
in interfaceOutputModelFactory
-
-