Uses of Class
org.antlr.v4.tool.ast.GrammarAST
Packages that use GrammarAST
Package
Description
-
Uses of GrammarAST in org.antlr.v4
Methods in org.antlr.v4 that return GrammarASTModifier and TypeMethodDescriptionstatic GrammarAST
Tool.findOptionValueAST
(GrammarRootAST root, String option) Manually get option node from tree; return null if no defined.Methods in org.antlr.v4 with parameters of type GrammarASTModifier and TypeMethodDescriptionTool.loadImportedGrammar
(Grammar g, GrammarAST nameNode) Try current dir then dir of g then lib dir -
Uses of GrammarAST in org.antlr.v4.analysis
Fields in org.antlr.v4.analysis declared as GrammarASTFields in org.antlr.v4.analysis with type parameters of type GrammarASTModifier and TypeFieldDescriptionLeftRecursiveRuleAnalyzer.leftRecursiveRuleRefLabels
Pointer to ID node of ^(= ID element)Methods in org.antlr.v4.analysis that return GrammarASTModifier and TypeMethodDescriptionLeftRecursiveRuleAnalyzer.stripLeftRecursion
(GrammarAST altAST) Methods in org.antlr.v4.analysis with parameters of type GrammarASTModifier and TypeMethodDescriptionstatic boolean
LeftRecursiveRuleAnalyzer.hasImmediateRecursiveRuleRefs
(GrammarAST t, String ruleName) Match (RULE RULE_REF (BLOCK (ALT .*) (ALT RULE_REF[self] .*) (ALT .*))) Match (RULE RULE_REF (BLOCK (ALT .*) (ALT (ASSIGN ID RULE_REF[self]) .*) (ALT .*)))void
LeftRecursiveRuleAnalyzer.setReturnValues
(GrammarAST t) void
LeftRecursiveRuleAnalyzer.stripAltLabel
(GrammarAST altAST) Strip last 2 tokens if → label; alter indexes in altASTLeftRecursiveRuleAnalyzer.stripLeftRecursion
(GrammarAST altAST) LeftRecursiveRuleAnalyzer.text
(GrammarAST t) Constructors in org.antlr.v4.analysis with parameters of type GrammarASTModifierConstructorDescriptionLeftRecursiveRuleAnalyzer
(GrammarAST ruleAST, Tool tool, String ruleName, String language) -
Uses of GrammarAST in org.antlr.v4.automata
Methods in org.antlr.v4.automata with parameters of type GrammarASTModifier and TypeMethodDescriptionParserATNFactory._ruleRef
(GrammarAST node) protected ATNFactory.Handle
LexerATNFactory.action
(GrammarAST node, LexerAction lexerAction) ATNFactory.block
(BlockAST blockAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alternativeGrips) From A|B|..|Z alternative block build o->o-A->o->o (last ATNState is blockEndATNState pointed to by all alts) | ^ o->o-B->o--| | | ...ParserATNFactory.block
(BlockAST blkAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alts) FromA|B|..|Z
alternative block buildstatic boolean
ParserATNFactory.blockHasWildcardAlt
(GrammarAST block) (BLOCK (ALT .))
or(BLOCK (ALT 'a') (ALT .))
.ATNFactory.charSetLiteral
(GrammarAST charSetAST) LexerATNFactory.charSetLiteral
(GrammarAST charSetAST) [Aa\t ሴa-z\]\p{Letter}\-] char setsParserATNFactory.charSetLiteral
(GrammarAST charSetAST) [Aa]
char sets not allowed in parserprotected boolean
LexerATNFactory.checkRange
(GrammarAST leftNode, GrammarAST rightNode, int leftValue, int rightValue) protected void
LexerATNFactory.checkSetCollision
(GrammarAST ast, IntervalSet set, int el) protected void
LexerATNFactory.checkSetCollision
(GrammarAST ast, IntervalSet set, int a, int b) ATNFactory.epsilon
(GrammarAST node) From an empty alternative build Grip o-e->oParserATNFactory.epsilon
(GrammarAST node) From an empty alternative buildo-e->o
.LexerATNFactory.getSetFromCharSetLiteral
(GrammarAST charSetAST) protected int
ParserATNFactory.getTokenType
(GrammarAST atom) ATNFactory.lexerCallCommand
(GrammarAST ID, GrammarAST arg) LexerATNFactory.lexerCallCommand
(GrammarAST ID, GrammarAST arg) ParserATNFactory.lexerCallCommand
(GrammarAST ID, GrammarAST arg) ATNFactory.lexerCommand
(GrammarAST ID) LexerATNFactory.lexerCommand
(GrammarAST ID) ParserATNFactory.lexerCommand
(GrammarAST ID) <T extends ATNState>
TParserATNFactory.newState
(Class<T> nodeType, GrammarAST node) ParserATNFactory.newState
(GrammarAST node) ATNFactory.optional
(GrammarAST optAST, ATNFactory.Handle blk) From (A)? build either: o--A->o | ^ o---->| or, if A is a block, just add an empty alt to the end of the blockParserATNFactory.optional
(GrammarAST optAST, ATNFactory.Handle blk) From(A)?
build either:ATNFactory.plus
(GrammarAST plusAST, ATNFactory.Handle blk) From (A)+ build |---| (Transition 2 from A.right points at alt 1) v | (follow of loop is Transition 1) o->o-A-o->o Meaning that the last ATNState in A points back to A's left Transition ATNState and we add a new begin/end ATNState.ParserATNFactory.plus
(GrammarAST plusAST, ATNFactory.Handle blk) From(blk)+
buildATNFactory.range
(GrammarAST a, GrammarAST b) LexerATNFactory.range
(GrammarAST a, GrammarAST b) ParserATNFactory.range
(GrammarAST a, GrammarAST b) Not valid for non-lexers.ATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) LexerATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) ParserATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) ATNFactory.ruleRef
(GrammarAST node) For reference to rule r, build o-e->(r) o where (r) is the start of rule r and the trailing o is not linked to from rule ref state directly (it's done thru the transition(0) RuleClosureTransition.ParserATNFactory.ruleRef
(GrammarAST node) For reference to ruler
, buildATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert) LexerATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert) ParserATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> terminals, boolean invert) From set build single edge grapho->o-set->o
.ATNFactory.star
(GrammarAST starAST, ATNFactory.Handle blk) From (A)* build |---| v | o->o-A-o--o (Transition 2 from block end points at alt 1; follow is Transition 1) | ^ o---------| (optional branch is 2nd alt of optional block containing A+) Meaning that the last (end) ATNState in A points back to A's left side ATNState and we add 3 new ATNStates (the optional branch is built just like an optional subrule).ParserATNFactory.star
(GrammarAST starAST, ATNFactory.Handle elem) From(blk)*
build( blk+ )?
with *two* decisions, one for entry and one for choosing alts ofblk
.ATNFactory.wildcard
(GrammarAST associatedAST) Build an atom with all possible values in its labelParserATNFactory.wildcard
(GrammarAST node) Build an atom with all possible values in its label.Method parameters in org.antlr.v4.automata with type arguments of type GrammarASTModifier and TypeMethodDescriptionATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert) LexerATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert) ParserATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> terminals, boolean invert) From set build single edge grapho->o-set->o
. -
Uses of GrammarAST in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type GrammarASTModifier and TypeMethodDescriptionSourceGenTriggers.atom
(GrammarAST label, boolean invert) SourceGenTriggers.block
(GrammarAST label, GrammarAST ebnfRoot) SourceGenTriggers.blockSet
(GrammarAST label, boolean invert) void
ParserFactory.defineImplicitLabel
(GrammarAST ast, LabeledOp op) ParserFactory.getAddToListOpIfListLabelPresent
(LabeledOp op, GrammarAST label) BlankOutputModelFactory.getChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label) OutputModelController.getChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label) OutputModelFactory.getChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label) ParserFactory.getChoiceBlock
(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST labelAST) BlankOutputModelFactory.getComplexEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) OutputModelFactory.getComplexEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) ParserFactory.getComplexEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) BlankOutputModelFactory.getEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) OutputModelController.getEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) OutputModelFactory.getEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) ParserFactory.getEBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) BlankOutputModelFactory.getLL1EBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) OutputModelFactory.getLL1EBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) ParserFactory.getLL1EBNFBlock
(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) BlankOutputModelFactory.getLL1Test
(IntervalSet look, GrammarAST blkAST) OutputModelFactory.getLL1Test
(IntervalSet look, GrammarAST blkAST) ParserFactory.getLL1Test
(IntervalSet look, GrammarAST blkAST) Target.getLoopCounter
(GrammarAST ast) Target.getLoopLabel
(GrammarAST ast) boolean
Target.grammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) boolean
BlankOutputModelFactory.needsImplicitLabel
(GrammarAST ID, LabeledOp op) boolean
CodeGeneratorExtension.needsImplicitLabel
(GrammarAST ID, LabeledOp op) boolean
OutputModelController.needsImplicitLabel
(GrammarAST ID, LabeledOp op) boolean
OutputModelFactory.needsImplicitLabel
(GrammarAST ID, LabeledOp op) boolean
ParserFactory.needsImplicitLabel
(GrammarAST ID, LabeledOp op) SourceGenTriggers.range
(GrammarAST label) SourceGenTriggers.ruleref
(GrammarAST label) BlankOutputModelFactory.ruleRef
(GrammarAST ID, GrammarAST label, GrammarAST args) OutputModelController.ruleRef
(GrammarAST ID, GrammarAST label, GrammarAST args) OutputModelFactory.ruleRef
(GrammarAST ID, GrammarAST label, GrammarAST args) ParserFactory.ruleRef
(GrammarAST ID, GrammarAST label, GrammarAST args) BlankOutputModelFactory.set
(GrammarAST setAST, GrammarAST label, boolean invert) OutputModelController.set
(GrammarAST setAST, GrammarAST labelAST, boolean invert) (A|B|C) possibly with ebnfRoot and labelOutputModelFactory.set
(GrammarAST setAST, GrammarAST label, boolean invert) ParserFactory.set
(GrammarAST setAST, GrammarAST labelAST, boolean invert) BlankOutputModelFactory.stringRef
(GrammarAST ID, GrammarAST label) OutputModelController.stringRef
(GrammarAST ID, GrammarAST label) OutputModelFactory.stringRef
(GrammarAST ID, GrammarAST label) SourceGenTriggers.terminal
(GrammarAST label) BlankOutputModelFactory.tokenRef
(GrammarAST ID, GrammarAST label, GrammarAST args) OutputModelController.tokenRef
(GrammarAST ID, GrammarAST label, GrammarAST args) OutputModelFactory.tokenRef
(GrammarAST ID, GrammarAST label, GrammarAST args) ParserFactory.tokenRef
(GrammarAST ID, GrammarAST labelAST, GrammarAST args) protected abstract boolean
Target.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) BlankOutputModelFactory.wildcard
(GrammarAST ast, GrammarAST labelAST) OutputModelController.wildcard
(GrammarAST ast, GrammarAST labelAST) OutputModelFactory.wildcard
(GrammarAST ast, GrammarAST labelAST) ParserFactory.wildcard
(GrammarAST ast, GrammarAST labelAST) -
Uses of GrammarAST in org.antlr.v4.codegen.model
Fields in org.antlr.v4.codegen.model declared as GrammarASTMethods in org.antlr.v4.codegen.model with parameters of type GrammarASTModifier and TypeMethodDescriptionprotected void
ElementFrequenciesVisitor.enterBlockSet
(GrammarAST tree) protected void
ElementFrequenciesVisitor.enterElement
(GrammarAST tree) protected void
ElementFrequenciesVisitor.enterLexerAlternative
(GrammarAST tree) protected void
ElementFrequenciesVisitor.enterLexerElement
(GrammarAST tree) protected void
ElementFrequenciesVisitor.exitBlockSet
(GrammarAST tree) protected void
ElementFrequenciesVisitor.exitElement
(GrammarAST tree) protected void
ElementFrequenciesVisitor.exitLexerAlternative
(GrammarAST tree) protected void
ElementFrequenciesVisitor.exitLexerElement
(GrammarAST tree) protected void
ElementFrequenciesVisitor.exitLexerSubrule
(GrammarAST tree) protected void
ElementFrequenciesVisitor.exitSubrule
(GrammarAST tree) RuleFunction.getDeclForAltElement
(GrammarAST t, String refLabelName, boolean needList, boolean optional) Choice.getThrowNoViableAlt
(OutputModelFactory factory, GrammarAST blkAST, IntervalSet expecting) void
ElementFrequenciesVisitor.ruleRef
(GrammarAST ref, ActionAST arg) Constructors in org.antlr.v4.codegen.model with parameters of type GrammarASTModifierConstructorDescriptionAltBlock
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, List<CodeBlockForAlt> alts) Choice
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, List<CodeBlockForAlt> alts) InvokeRule
(ParserFactory factory, GrammarAST ast, GrammarAST labelAST) LL1AltBlock
(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts) LL1Choice
(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts) LL1Loop
(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts) LL1OptionalBlock
(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts) LL1OptionalBlockSingleAlt
(OutputModelFactory factory, GrammarAST blkAST, List<CodeBlockForAlt> alts) LL1PlusBlockSingleAlt
(OutputModelFactory factory, GrammarAST plusRoot, List<CodeBlockForAlt> alts) LL1StarBlockSingleAlt
(OutputModelFactory factory, GrammarAST starRoot, List<CodeBlockForAlt> alts) Loop
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, List<CodeBlockForAlt> alts) MatchNotSet
(OutputModelFactory factory, GrammarAST ast) MatchSet
(OutputModelFactory factory, GrammarAST ast) MatchToken
(OutputModelFactory factory, GrammarAST ast) OptionalBlock
(OutputModelFactory factory, GrammarAST questionAST, List<CodeBlockForAlt> alts) OutputModelObject
(OutputModelFactory factory, GrammarAST ast) PlusBlock
(OutputModelFactory factory, GrammarAST plusRoot, List<CodeBlockForAlt> alts) RuleElement
(OutputModelFactory factory, GrammarAST ast) SrcOp
(OutputModelFactory factory, GrammarAST ast) StarBlock
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, List<CodeBlockForAlt> alts) Sync
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, IntervalSet expecting, int decision, String position) TestSetInline
(OutputModelFactory factory, GrammarAST ast, IntervalSet set, int wordSize) ThrowEarlyExitException
(OutputModelFactory factory, GrammarAST ast, IntervalSet expecting) ThrowNoViableAlt
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, IntervalSet expecting) ThrowRecognitionException
(OutputModelFactory factory, GrammarAST ast, IntervalSet expecting) Wildcard
(OutputModelFactory factory, GrammarAST ast) -
Uses of GrammarAST in org.antlr.v4.codegen.target
Methods in org.antlr.v4.codegen.target with parameters of type GrammarASTModifier and TypeMethodDescriptionprotected boolean
CppTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
CSharpTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
DartTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
GoTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
JavaScriptTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
JavaTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
PHPTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
Python2Target.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
Python3Target.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) protected boolean
SwiftTarget.visibleGrammarSymbolCausesIssueInGeneratedCode
(GrammarAST idNode) -
Uses of GrammarAST in org.antlr.v4.misc
Methods in org.antlr.v4.misc with type parameters of type GrammarASTModifier and TypeMethodDescriptionstatic <T extends GrammarAST>
List<String> Utils.nodesToStrings
(List<T> nodes) -
Uses of GrammarAST in org.antlr.v4.parse
Fields in org.antlr.v4.parse declared as GrammarASTModifier and TypeFieldDescriptionBlockSetTransformer.currentAlt
GrammarTreeVisitor.currentOuterAltRoot
GrammarTreeVisitor.currentRuleAST
GrammarTreeVisitor.prequelConstructs_return.firstOne
Methods in org.antlr.v4.parse that return GrammarASTModifier and TypeMethodDescriptionANTLRParser.action_return.getTree()
ANTLRParser.actionElement_return.getTree()
ANTLRParser.actionScopeName_return.getTree()
ANTLRParser.alternative_return.getTree()
ANTLRParser.alternativeEntry_return.getTree()
ANTLRParser.altList_return.getTree()
ANTLRParser.atom_return.getTree()
ANTLRParser.block_return.getTree()
ANTLRParser.blockEntry_return.getTree()
ANTLRParser.blockSet_return.getTree()
ANTLRParser.blockSuffix_return.getTree()
ANTLRParser.channelsSpec_return.getTree()
ANTLRParser.delegateGrammar_return.getTree()
ANTLRParser.delegateGrammars_return.getTree()
ANTLRParser.ebnf_return.getTree()
ANTLRParser.ebnfSuffix_return.getTree()
ANTLRParser.element_return.getTree()
ANTLRParser.elementEntry_return.getTree()
ANTLRParser.elementOption_return.getTree()
ANTLRParser.elementOptions_return.getTree()
ANTLRParser.exceptionGroup_return.getTree()
ANTLRParser.exceptionHandler_return.getTree()
ANTLRParser.finallyClause_return.getTree()
ANTLRParser.grammarSpec_return.getTree()
ANTLRParser.grammarType_return.getTree()
ANTLRParser.id_return.getTree()
ANTLRParser.labeledAlt_return.getTree()
ANTLRParser.labeledElement_return.getTree()
ANTLRParser.labeledLexerElement_return.getTree()
ANTLRParser.lexerAlt_return.getTree()
ANTLRParser.lexerAltList_return.getTree()
ANTLRParser.lexerAtom_return.getTree()
ANTLRParser.lexerBlock_return.getTree()
ANTLRParser.lexerCommand_return.getTree()
ANTLRParser.lexerCommandExpr_return.getTree()
ANTLRParser.lexerCommandName_return.getTree()
ANTLRParser.lexerCommands_return.getTree()
ANTLRParser.lexerElement_return.getTree()
ANTLRParser.lexerElements_return.getTree()
ANTLRParser.lexerRule_return.getTree()
ANTLRParser.lexerRuleBlock_return.getTree()
ANTLRParser.localsSpec_return.getTree()
ANTLRParser.modeSpec_return.getTree()
ANTLRParser.notSet_return.getTree()
ANTLRParser.option_return.getTree()
ANTLRParser.optionsSpec_return.getTree()
ANTLRParser.optionValue_return.getTree()
ANTLRParser.parserRule_return.getTree()
ANTLRParser.prequelConstruct_return.getTree()
ANTLRParser.qid_return.getTree()
ANTLRParser.range_return.getTree()
ANTLRParser.rule_return.getTree()
ANTLRParser.ruleAction_return.getTree()
ANTLRParser.ruleAltList_return.getTree()
ANTLRParser.ruleBlock_return.getTree()
ANTLRParser.ruleEntry_return.getTree()
ANTLRParser.rulePrequel_return.getTree()
ANTLRParser.rulePrequels_return.getTree()
ANTLRParser.ruleref_return.getTree()
ANTLRParser.ruleReturns_return.getTree()
ANTLRParser.rules_return.getTree()
ANTLRParser.setElement_return.getTree()
ANTLRParser.sync_return.getTree()
ANTLRParser.terminal_return.getTree()
ANTLRParser.throwsSpec_return.getTree()
ANTLRParser.tokensSpec_return.getTree()
ANTLRParser.v3tokenSpec_return.getTree()
ANTLRParser.wildcard_return.getTree()
BlockSetTransformer.blockSet_return.getTree()
BlockSetTransformer.ebnfBlockSet_return.getTree()
BlockSetTransformer.ebnfSuffix_return.getTree()
BlockSetTransformer.elementOption_return.getTree()
BlockSetTransformer.elementOptions_return.getTree()
BlockSetTransformer.setAlt_return.getTree()
BlockSetTransformer.setElement_return.getTree()
BlockSetTransformer.topdown_return.getTree()
final GrammarAST
LeftRecursiveRuleWalker.token()
Methods in org.antlr.v4.parse with parameters of type GrammarASTModifier and TypeMethodDescriptionfinal ATNFactory.Handle
ATNBuilder.block
(GrammarAST ebnfRoot) void
GrammarTreeVisitor.blockOption
(GrammarAST ID, GrammarAST valueAST) void
GrammarTreeVisitor.defineChannel
(GrammarAST ID) void
GrammarTreeVisitor.defineToken
(GrammarAST ID) void
GrammarTreeVisitor.discoverGrammar
(GrammarRootAST root, GrammarAST ID) void
GrammarTreeVisitor.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
GrammarTreeVisitor.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) void
GrammarTreeVisitor.discoverRules
(GrammarAST rules) void
GrammarTreeVisitor.elementOption
(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST) protected void
GrammarTreeVisitor.enterAction
(GrammarAST tree) protected void
GrammarTreeVisitor.enterActionElement
(GrammarAST tree) protected void
GrammarTreeVisitor.enterAstOperand
(GrammarAST tree) protected void
GrammarTreeVisitor.enterAtom
(GrammarAST tree) protected void
GrammarTreeVisitor.enterBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.enterBlockSet
(GrammarAST tree) protected void
GrammarTreeVisitor.enterBlockSuffix
(GrammarAST tree) protected void
GrammarTreeVisitor.enterChannelSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.enterChannelsSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.enterDelegateGrammar
(GrammarAST tree) protected void
GrammarTreeVisitor.enterDelegateGrammars
(GrammarAST tree) protected void
GrammarTreeVisitor.enterEbnfSuffix
(GrammarAST tree) protected void
GrammarTreeVisitor.enterElement
(GrammarAST tree) protected void
GrammarTreeVisitor.enterElementOption
(GrammarAST tree) protected void
GrammarTreeVisitor.enterElementOptions
(GrammarAST tree) protected void
GrammarTreeVisitor.enterExceptionGroup
(GrammarAST tree) protected void
GrammarTreeVisitor.enterExceptionHandler
(GrammarAST tree) protected void
GrammarTreeVisitor.enterFinallyClause
(GrammarAST tree) protected void
GrammarTreeVisitor.enterGrammarSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLabeledElement
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLabeledLexerElement
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerAlternative
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerAtom
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerCommand
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerCommandExpr
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerElement
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerElements
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerRule
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerRuleBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLexerSubrule
(GrammarAST tree) protected void
GrammarTreeVisitor.enterLocals
(GrammarAST tree) protected void
GrammarTreeVisitor.enterMode
(GrammarAST tree) protected void
GrammarTreeVisitor.enterOption
(GrammarAST tree) protected void
GrammarTreeVisitor.enterOptionsSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.enterOptionValue
(GrammarAST tree) protected void
GrammarTreeVisitor.enterPrequelConstruct
(GrammarAST tree) protected void
GrammarTreeVisitor.enterPrequelConstructs
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRange
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRule
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRuleAction
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRuleBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRuleModifier
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRuleref
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRuleReturns
(GrammarAST tree) protected void
GrammarTreeVisitor.enterRules
(GrammarAST tree) protected void
GrammarTreeVisitor.enterSetElement
(GrammarAST tree) protected void
GrammarTreeVisitor.enterSubrule
(GrammarAST tree) protected void
GrammarTreeVisitor.enterTerminal
(GrammarAST tree) protected void
GrammarTreeVisitor.enterThrowsSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.enterTokenSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.enterTokensSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitAction
(GrammarAST tree) protected void
GrammarTreeVisitor.exitActionElement
(GrammarAST tree) protected void
GrammarTreeVisitor.exitAstOperand
(GrammarAST tree) protected void
GrammarTreeVisitor.exitAtom
(GrammarAST tree) protected void
GrammarTreeVisitor.exitBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.exitBlockSet
(GrammarAST tree) protected void
GrammarTreeVisitor.exitBlockSuffix
(GrammarAST tree) protected void
GrammarTreeVisitor.exitChannelSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitChannelsSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitDelegateGrammar
(GrammarAST tree) protected void
GrammarTreeVisitor.exitDelegateGrammars
(GrammarAST tree) protected void
GrammarTreeVisitor.exitEbnfSuffix
(GrammarAST tree) protected void
GrammarTreeVisitor.exitElement
(GrammarAST tree) protected void
GrammarTreeVisitor.exitElementOption
(GrammarAST tree) protected void
GrammarTreeVisitor.exitElementOptions
(GrammarAST tree) protected void
GrammarTreeVisitor.exitExceptionGroup
(GrammarAST tree) protected void
GrammarTreeVisitor.exitExceptionHandler
(GrammarAST tree) protected void
GrammarTreeVisitor.exitFinallyClause
(GrammarAST tree) protected void
GrammarTreeVisitor.exitGrammarSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLabeledElement
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLabeledLexerElement
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerAlternative
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerAtom
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerCommand
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerCommandExpr
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerElement
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerElements
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerRule
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerRuleBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLexerSubrule
(GrammarAST tree) protected void
GrammarTreeVisitor.exitLocals
(GrammarAST tree) protected void
GrammarTreeVisitor.exitMode
(GrammarAST tree) protected void
GrammarTreeVisitor.exitOption
(GrammarAST tree) protected void
GrammarTreeVisitor.exitOptionsSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitOptionValue
(GrammarAST tree) protected void
GrammarTreeVisitor.exitPrequelConstruct
(GrammarAST tree) protected void
GrammarTreeVisitor.exitPrequelConstructs
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRange
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRule
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRuleAction
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRuleBlock
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRuleModifier
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRuleref
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRuleReturns
(GrammarAST tree) protected void
GrammarTreeVisitor.exitRules
(GrammarAST tree) protected void
GrammarTreeVisitor.exitSetElement
(GrammarAST tree) protected void
GrammarTreeVisitor.exitSubrule
(GrammarAST tree) protected void
GrammarTreeVisitor.exitTerminal
(GrammarAST tree) protected void
GrammarTreeVisitor.exitThrowsSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitTokenSpec
(GrammarAST tree) protected void
GrammarTreeVisitor.exitTokensSpec
(GrammarAST tree) void
GrammarTreeVisitor.finishGrammar
(GrammarRootAST root, GrammarAST ID) void
GrammarTreeVisitor.finishLexerRule
(RuleAST rule, GrammarAST ID, GrammarAST block) void
GrammarTreeVisitor.finishPrequels
(GrammarAST firstPrequel) void
GrammarTreeVisitor.finishRule
(RuleAST rule, GrammarAST ID, GrammarAST block) void
GrammarTreeVisitor.finishRules
(GrammarAST rule) void
GrammarTreeVisitor.globalNamedAction
(GrammarAST scope, GrammarAST ID, ActionAST action) void
GrammarTreeVisitor.grammarOption
(GrammarAST ID, GrammarAST valueAST) void
GrammarTreeVisitor.importGrammar
(GrammarAST label, GrammarAST ID) void
GrammarTreeVisitor.label
(GrammarAST op, GrammarAST ID, GrammarAST element) void
GrammarTreeVisitor.lexerCallCommand
(int outerAltNumber, GrammarAST ID, GrammarAST arg) void
GrammarTreeVisitor.lexerCommand
(int outerAltNumber, GrammarAST ID) void
GrammarTreeVisitor.modeDef
(GrammarAST m, GrammarAST ID) final ATNFactory.Handle
ATNBuilder.ruleBlock
(GrammarAST ebnfRoot) void
GrammarTreeVisitor.ruleCatch
(GrammarAST arg, ActionAST action) void
GrammarTreeVisitor.ruleOption
(GrammarAST ID, GrammarAST valueAST) void
GrammarTreeVisitor.ruleRef
(GrammarAST ref, ActionAST arg) void
LeftRecursiveRuleWalker.setReturnValues
(GrammarAST t) void
GrammarTreeVisitor.visit
(GrammarAST t, String ruleName) void
GrammarTreeVisitor.visitGrammar
(GrammarAST t) void
GrammarTreeVisitor.wildcardRef
(GrammarAST ref) Method parameters in org.antlr.v4.parse with type arguments of type GrammarASTModifier and TypeMethodDescriptionvoid
GrammarTreeVisitor.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
GrammarTreeVisitor.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) -
Uses of GrammarAST in org.antlr.v4.semantics
Fields in org.antlr.v4.semantics with type parameters of type GrammarASTModifier and TypeFieldDescriptionSymbolCollector.channelDefs
SymbolCollector.qualifiedRulerefs
SymbolCollector.rulerefs
org.stringtemplate.v4.misc.MultiMap
<String, GrammarAST> RuleCollector.ruleToAltLabels
SymbolCollector.terminals
SymbolCollector.tokenIDRefs
SymbolCollector.tokensDefs
Methods in org.antlr.v4.semantics with parameters of type GrammarASTModifier and TypeMethodDescriptionvoid
BasicSemanticChecks.blockOption
(GrammarAST ID, GrammarAST valueAST) void
SymbolCollector.blockOption
(GrammarAST ID, GrammarAST valueAST) protected void
BasicSemanticChecks.checkElementIsOuterMostInSingleAlt
(GrammarAST tree) Make sure that action is last element in outer alt; here action, a2, z, and zz are bad, but a3 is ok: (RULE A (BLOCK (ALT {action} 'a'))) (RULE B (BLOCK (ALT (BLOCK (ALT {a2} 'x') (ALT 'y')) {a3}))) (RULE C (BLOCK (ALT 'd' {z}) (ALT 'e' {zz})))void
SymbolChecks.checkForLabelConflict
(Rule r, GrammarAST labelID) void
BasicSemanticChecks.defineChannel
(GrammarAST ID) void
SymbolCollector.defineChannel
(GrammarAST ID) void
BasicSemanticChecks.defineToken
(GrammarAST ID) void
SymbolCollector.defineToken
(GrammarAST ID) void
BasicSemanticChecks.discoverGrammar
(GrammarRootAST root, GrammarAST ID) void
BasicSemanticChecks.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
RuleCollector.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
SymbolCollector.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
BasicSemanticChecks.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) void
RuleCollector.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) void
SymbolCollector.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) void
BasicSemanticChecks.discoverRules
(GrammarAST rules) void
BasicSemanticChecks.elementOption
(GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST) void
SymbolCollector.elementOption
(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST) protected void
BasicSemanticChecks.enterChannelsSpec
(GrammarAST tree) protected void
BasicSemanticChecks.enterLabeledLexerElement
(GrammarAST tree) protected void
BasicSemanticChecks.enterLexerCommand
(GrammarAST tree) protected void
BasicSemanticChecks.enterLexerElement
(GrammarAST tree) protected void
BasicSemanticChecks.enterMode
(GrammarAST tree) protected void
BasicSemanticChecks.enterTerminal
(GrammarAST tree) protected void
BasicSemanticChecks.exitLexerRule
(GrammarAST tree) protected void
BasicSemanticChecks.exitMode
(GrammarAST tree) void
BasicSemanticChecks.finishPrequels
(GrammarAST firstPrequel) void
BasicSemanticChecks.finishRule
(RuleAST rule, GrammarAST ID, GrammarAST block) void
SymbolCollector.globalNamedAction
(GrammarAST scope, GrammarAST ID, ActionAST action) void
BasicSemanticChecks.grammarOption
(GrammarAST ID, GrammarAST valueAST) void
SymbolCollector.grammarOption
(GrammarAST ID, GrammarAST valueAST) void
BasicSemanticChecks.importGrammar
(GrammarAST label, GrammarAST ID) void
BasicSemanticChecks.label
(GrammarAST op, GrammarAST ID, GrammarAST element) void
SymbolCollector.label
(GrammarAST op, GrammarAST ID, GrammarAST element) void
BasicSemanticChecks.modeDef
(GrammarAST m, GrammarAST ID) void
RuleCollector.process
(GrammarAST ast) void
SymbolCollector.process
(GrammarAST ast) void
SymbolCollector.ruleCatch
(GrammarAST arg, ActionAST action) void
BasicSemanticChecks.ruleOption
(GrammarAST ID, GrammarAST valueAST) void
SymbolCollector.ruleOption
(GrammarAST ID, GrammarAST valueAST) void
BasicSemanticChecks.ruleRef
(GrammarAST ref, ActionAST arg) void
SymbolCollector.ruleRef
(GrammarAST ref, ActionAST arg) Method parameters in org.antlr.v4.semantics with type arguments of type GrammarASTModifier and TypeMethodDescriptionvoid
SymbolChecks.checkActionRedefinitions
(List<GrammarAST> actions) void
SymbolChecks.checkForQualifiedRuleIssues
(Grammar g, List<GrammarAST> qualifiedRuleRefs) void
SymbolChecks.checkRuleArgs
(Grammar g, List<GrammarAST> rulerefs) void
BasicSemanticChecks.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
RuleCollector.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
SymbolCollector.discoverLexerRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block) void
BasicSemanticChecks.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) void
RuleCollector.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) void
SymbolCollector.discoverRule
(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) -
Uses of GrammarAST in org.antlr.v4.tool
Fields in org.antlr.v4.tool declared as GrammarASTModifier and TypeFieldDescriptionAttributeDict.ast
LabelElementPair.element
LabelElementPair.label
Fields in org.antlr.v4.tool with type parameters of type GrammarASTModifier and TypeFieldDescriptionRule.exceptions
Track exception handlers; points at "catch" node of (catch exception action) don't track finally actionLeftRecursiveRule.leftRecursiveRuleRefLabels
Did we delete any labels on direct left-recur refs? Points at ID of ^(= ID el)Rule.modifiers
org.stringtemplate.v4.misc.MultiMap
<String, GrammarAST> Alternative.ruleRefs
org.stringtemplate.v4.misc.MultiMap
<String, GrammarAST> Alternative.ruleRefsInActions
org.stringtemplate.v4.misc.MultiMap
<String, GrammarAST> Alternative.tokenRefsInActions
Methods in org.antlr.v4.tool that return GrammarASTMethods in org.antlr.v4.tool that return types with arguments of type GrammarASTModifier and TypeMethodDescriptionstatic List
<Pair<GrammarAST, GrammarAST>> Grammar.getStringLiteralAliasesFromLexerRules
(GrammarRootAST ast) Return list of (TOKEN_NAME node, 'literal' node) pairsstatic List
<Pair<GrammarAST, GrammarAST>> Grammar.getStringLiteralAliasesFromLexerRules
(GrammarRootAST ast) Return list of (TOKEN_NAME node, 'literal' node) pairsMethods in org.antlr.v4.tool with parameters of type GrammarASTModifier and TypeMethodDescriptionstatic void
GrammarTransformPipeline.augmentTokensWithOriginalPosition
(Grammar g, GrammarAST tree) protected static boolean
Grammar.defAlias
(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST, GrammarAST>> lexerRuleToStringLiteral) void
Grammar.defineAction
(GrammarAST atAST) GrammarTransformPipeline.expandParameterizedLoop
(GrammarAST t) void
GrammarTransformPipeline.expandParameterizedLoops
(GrammarAST root) Find and replace ID*[','] with ID (',' ID)* ID+[','] with ID (',' ID)+ (x {action} y)+[','] with x {action} y (',' x {action} y)+ Parameter must be a token.void
GrammarTransformPipeline.reduceBlocksToSets
(GrammarAST root) static void
GrammarTransformPipeline.setGrammarPtr
(Grammar g, GrammarAST tree) Utility visitor that sets grammar ptr in each nodestatic void
Grammar.setNodeOptions
(GrammarAST node, GrammarAST options) Given ^(TOKEN_REF ^(OPTIONS ^(ELEMENT_OPTIONS (= assoc right)))) set option assoc=right in TOKEN_REF.Method parameters in org.antlr.v4.tool with type arguments of type GrammarASTModifier and TypeMethodDescriptionprotected static boolean
Grammar.defAlias
(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST, GrammarAST>> lexerRuleToStringLiteral) protected static boolean
Grammar.defAlias
(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST, GrammarAST>> lexerRuleToStringLiteral) Constructors in org.antlr.v4.tool with parameters of type GrammarASTModifierConstructorDescriptionLabelElementPair
(Grammar g, GrammarAST label, GrammarAST element, int labelOp) -
Uses of GrammarAST in org.antlr.v4.tool.ast
Subclasses of GrammarAST in org.antlr.v4.tool.astModifier and TypeClassDescriptionclass
class
Any ALT (which can be child of ALT_REWRITE node)class
class
A node representing erroneous token range in token streamclass
class
class
class
class
class
class
class
class
class
class
class
Fields in org.antlr.v4.tool.ast declared as GrammarASTModifier and TypeFieldDescriptionAltAST.altLabel
If someone specified an outermost alternative label with #foo.Fields in org.antlr.v4.tool.ast with type parameters of type GrammarASTMethods in org.antlr.v4.tool.ast that return GrammarASTModifier and TypeMethodDescriptionGrammarAST.dupNode()
GrammarAST.dupTree()
GrammarAST.getChildrenAsArray()
GrammarAST.getNodeWithTokenIndex
(int index) GrammarASTWithOptions.getOptionAST
(String key) Gets AST node holding value for option key; ignores default options and command-line forced options.Methods in org.antlr.v4.tool.ast that return types with arguments of type GrammarASTModifier and TypeMethodDescriptionGrammarAST.getAllChildrenWithType
(int type) GrammarAST.getNodesWithType
(int ttype) GrammarAST.getNodesWithType
(IntervalSet types) GrammarAST.getNodesWithTypePreorderDFS
(IntervalSet types) GrammarASTWithOptions.getOptions()
Methods in org.antlr.v4.tool.ast with parameters of type GrammarASTModifier and TypeMethodDescriptionvoid
GrammarASTWithOptions.setOption
(String key, GrammarAST node) GrammarASTVisitor.visit
(GrammarAST node) This is the generic visitor method that will be invoked for any other kind of AST node not covered by the other visit methods.Method parameters in org.antlr.v4.tool.ast with type arguments of type GrammarASTModifier and TypeMethodDescriptionvoid
GrammarAST.getNodesWithTypePreorderDFS_
(List<GrammarAST> nodes, IntervalSet types) Constructors in org.antlr.v4.tool.ast with parameters of type GrammarAST