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 GrammarASTTool.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.leftRecursiveRuleRefLabelsPointer 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 booleanLeftRecursiveRuleAnalyzer.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 .*)))voidLeftRecursiveRuleAnalyzer.setReturnValues(GrammarAST t) voidLeftRecursiveRuleAnalyzer.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.HandleLexerATNFactory.action(GrammarAST node, LexerAction lexerAction) private voidLexerATNFactory.applyPrevState(GrammarAST charSetAST, IntervalSet set, LexerATNFactory.CharSetParseState state) LexerATNFactory.applyPrevStateAndMoveToCodePoint(GrammarAST charSetAST, IntervalSet set, LexerATNFactory.CharSetParseState state, int codePoint) LexerATNFactory.applyPrevStateAndMoveToProperty(GrammarAST charSetAST, IntervalSet set, LexerATNFactory.CharSetParseState state, IntervalSet property) 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|..|Zalternative block buildstatic booleanParserATNFactory.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 parserprivate voidLexerATNFactory.checkCharAndAddToSet(GrammarAST ast, IntervalSet set, int c) protected booleanLexerATNFactory.checkRange(GrammarAST leftNode, GrammarAST rightNode, int leftValue, int rightValue) private voidLexerATNFactory.checkRangeAndAddToSet(GrammarAST mainAst, IntervalSet set, int a, int b) private CharactersDataCheckStatusLexerATNFactory.checkRangeAndAddToSet(GrammarAST rootAst, GrammarAST ast, IntervalSet set, int a, int b, boolean caseInsensitive, CharactersDataCheckStatus previousStatus) private LexerActionLexerATNFactory.createLexerAction(GrammarAST ID, GrammarAST arg) 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 intParserATNFactory.getTokenType(GrammarAST atom) ATNFactory.lexerCallCommand(GrammarAST ID, GrammarAST arg) LexerATNFactory.lexerCallCommand(GrammarAST ID, GrammarAST arg) ParserATNFactory.lexerCallCommand(GrammarAST ID, GrammarAST arg) private ATNFactory.HandleLexerATNFactory.lexerCallCommandOrCommand(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) voidParserFactory.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) booleanTarget.grammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) booleanBlankOutputModelFactory.needsImplicitLabel(GrammarAST ID, LabeledOp op) booleanCodeGeneratorExtension.needsImplicitLabel(GrammarAST ID, LabeledOp op) booleanOutputModelController.needsImplicitLabel(GrammarAST ID, LabeledOp op) booleanOutputModelFactory.needsImplicitLabel(GrammarAST ID, LabeledOp op) booleanParserFactory.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 booleanTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) Deprecated.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 that return types with arguments of type GrammarASTModifier and TypeMethodDescriptionprivate List<GrammarAST> RuleFunction.getRuleTokens(List<GrammarAST> refs) Methods in org.antlr.v4.codegen.model with parameters of type GrammarASTModifier and TypeMethodDescriptionprotected voidElementFrequenciesVisitor.enterBlockSet(GrammarAST tree) protected voidElementFrequenciesVisitor.enterElement(GrammarAST tree) protected voidElementFrequenciesVisitor.enterLexerAlternative(GrammarAST tree) protected voidElementFrequenciesVisitor.enterLexerElement(GrammarAST tree) protected voidElementFrequenciesVisitor.exitBlockSet(GrammarAST tree) protected voidElementFrequenciesVisitor.exitElement(GrammarAST tree) protected voidElementFrequenciesVisitor.exitLexerAlternative(GrammarAST tree) protected voidElementFrequenciesVisitor.exitLexerElement(GrammarAST tree) protected voidElementFrequenciesVisitor.exitLexerSubrule(GrammarAST tree) protected voidElementFrequenciesVisitor.exitSubrule(GrammarAST tree) RuleFunction.getDeclForAltElement(GrammarAST t, String refLabelName, boolean needList, boolean optional) private StringRuleFunction.getName(GrammarAST token) Choice.getThrowNoViableAlt(OutputModelFactory factory, GrammarAST blkAST, IntervalSet expecting) voidElementFrequenciesVisitor.ruleRef(GrammarAST ref, ActionAST arg) Method parameters in org.antlr.v4.codegen.model with type arguments of type GrammarASTModifier and TypeMethodDescriptionprivate List<GrammarAST> RuleFunction.getRuleTokens(List<GrammarAST> refs) 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.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.currentAltGrammarTreeVisitor.currentOuterAltRootGrammarTreeVisitor.currentRuleASTGrammarTreeVisitor.prequelConstructs_return.firstOne(package private) GrammarASTANTLRParser.action_return.tree(package private) GrammarASTANTLRParser.actionElement_return.tree(package private) GrammarASTANTLRParser.actionScopeName_return.tree(package private) GrammarASTANTLRParser.alternative_return.tree(package private) GrammarASTANTLRParser.alternativeEntry_return.tree(package private) GrammarASTANTLRParser.altList_return.tree(package private) GrammarASTANTLRParser.atom_return.tree(package private) GrammarASTANTLRParser.block_return.tree(package private) GrammarASTANTLRParser.blockEntry_return.tree(package private) GrammarASTANTLRParser.blockSet_return.tree(package private) GrammarASTANTLRParser.blockSuffix_return.tree(package private) GrammarASTANTLRParser.channelsSpec_return.tree(package private) GrammarASTANTLRParser.delegateGrammar_return.tree(package private) GrammarASTANTLRParser.delegateGrammars_return.tree(package private) GrammarASTANTLRParser.ebnf_return.tree(package private) GrammarASTANTLRParser.ebnfSuffix_return.tree(package private) GrammarASTANTLRParser.element_return.tree(package private) GrammarASTANTLRParser.elementEntry_return.tree(package private) GrammarASTANTLRParser.elementOption_return.tree(package private) GrammarASTANTLRParser.elementOptions_return.tree(package private) GrammarASTANTLRParser.exceptionGroup_return.tree(package private) GrammarASTANTLRParser.exceptionHandler_return.tree(package private) GrammarASTANTLRParser.finallyClause_return.tree(package private) GrammarASTANTLRParser.grammarSpec_return.tree(package private) GrammarASTANTLRParser.grammarType_return.tree(package private) GrammarASTANTLRParser.id_return.tree(package private) GrammarASTANTLRParser.labeledAlt_return.tree(package private) GrammarASTANTLRParser.labeledElement_return.tree(package private) GrammarASTANTLRParser.lexerAlt_return.tree(package private) GrammarASTANTLRParser.lexerAltList_return.tree(package private) GrammarASTANTLRParser.lexerAtom_return.tree(package private) GrammarASTANTLRParser.lexerBlock_return.tree(package private) GrammarASTANTLRParser.lexerCommand_return.tree(package private) GrammarASTANTLRParser.lexerCommandExpr_return.tree(package private) GrammarASTANTLRParser.lexerCommandName_return.tree(package private) GrammarASTANTLRParser.lexerCommands_return.tree(package private) GrammarASTANTLRParser.lexerElement_return.tree(package private) GrammarASTANTLRParser.lexerElements_return.tree(package private) GrammarASTANTLRParser.lexerRule_return.tree(package private) GrammarASTANTLRParser.lexerRuleBlock_return.tree(package private) GrammarASTANTLRParser.localsSpec_return.tree(package private) GrammarASTANTLRParser.modeSpec_return.tree(package private) GrammarASTANTLRParser.notSet_return.tree(package private) GrammarASTANTLRParser.option_return.tree(package private) GrammarASTANTLRParser.optionsSpec_return.tree(package private) GrammarASTANTLRParser.optionValue_return.tree(package private) GrammarASTANTLRParser.parserRule_return.tree(package private) GrammarASTANTLRParser.prequelConstruct_return.tree(package private) GrammarASTANTLRParser.qid_return.tree(package private) GrammarASTANTLRParser.range_return.tree(package private) GrammarASTANTLRParser.rule_return.tree(package private) GrammarASTANTLRParser.ruleAction_return.tree(package private) GrammarASTANTLRParser.ruleAltList_return.tree(package private) GrammarASTANTLRParser.ruleBlock_return.tree(package private) GrammarASTANTLRParser.ruleEntry_return.tree(package private) GrammarASTANTLRParser.rulePrequel_return.tree(package private) GrammarASTANTLRParser.rulePrequels_return.tree(package private) GrammarASTANTLRParser.ruleref_return.tree(package private) GrammarASTANTLRParser.ruleReturns_return.tree(package private) GrammarASTANTLRParser.rules_return.tree(package private) GrammarASTANTLRParser.setElement_return.tree(package private) GrammarASTANTLRParser.sync_return.tree(package private) GrammarASTANTLRParser.terminal_return.tree(package private) GrammarASTANTLRParser.throwsSpec_return.tree(package private) GrammarASTANTLRParser.tokensSpec_return.tree(package private) GrammarASTANTLRParser.wildcard_return.tree(package private) GrammarASTBlockSetTransformer.blockSet_return.tree(package private) GrammarASTBlockSetTransformer.ebnfBlockSet_return.tree(package private) GrammarASTBlockSetTransformer.ebnfSuffix_return.tree(package private) GrammarASTBlockSetTransformer.elementOption_return.tree(package private) GrammarASTBlockSetTransformer.elementOptions_return.tree(package private) GrammarASTBlockSetTransformer.setAlt_return.tree(package private) GrammarASTBlockSetTransformer.setElement_return.tree(package private) GrammarASTBlockSetTransformer.topdown_return.treeMethods 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.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.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 GrammarASTLeftRecursiveRuleWalker.token()Methods in org.antlr.v4.parse with parameters of type GrammarASTModifier and TypeMethodDescriptionfinal ATNFactory.HandleATNBuilder.block(GrammarAST ebnfRoot) voidGrammarTreeVisitor.blockOption(GrammarAST ID, GrammarAST valueAST) voidGrammarTreeVisitor.defineChannel(GrammarAST ID) voidGrammarTreeVisitor.defineToken(GrammarAST ID) voidGrammarTreeVisitor.discoverGrammar(GrammarRootAST root, GrammarAST ID) voidGrammarTreeVisitor.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidGrammarTreeVisitor.discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) voidGrammarTreeVisitor.discoverRules(GrammarAST rules) voidGrammarTreeVisitor.elementOption(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST) protected voidGrammarTreeVisitor.enterAction(GrammarAST tree) protected voidGrammarTreeVisitor.enterActionElement(GrammarAST tree) protected voidGrammarTreeVisitor.enterAstOperand(GrammarAST tree) protected voidGrammarTreeVisitor.enterAtom(GrammarAST tree) protected voidGrammarTreeVisitor.enterBlock(GrammarAST tree) protected voidGrammarTreeVisitor.enterBlockSet(GrammarAST tree) protected voidGrammarTreeVisitor.enterBlockSuffix(GrammarAST tree) protected voidGrammarTreeVisitor.enterChannelSpec(GrammarAST tree) protected voidGrammarTreeVisitor.enterChannelsSpec(GrammarAST tree) protected voidGrammarTreeVisitor.enterDelegateGrammar(GrammarAST tree) protected voidGrammarTreeVisitor.enterDelegateGrammars(GrammarAST tree) protected voidGrammarTreeVisitor.enterEbnfSuffix(GrammarAST tree) protected voidGrammarTreeVisitor.enterElement(GrammarAST tree) protected voidGrammarTreeVisitor.enterElementOption(GrammarAST tree) protected voidGrammarTreeVisitor.enterElementOptions(GrammarAST tree) protected voidGrammarTreeVisitor.enterExceptionGroup(GrammarAST tree) protected voidGrammarTreeVisitor.enterExceptionHandler(GrammarAST tree) protected voidGrammarTreeVisitor.enterFinallyClause(GrammarAST tree) protected voidGrammarTreeVisitor.enterGrammarSpec(GrammarAST tree) protected voidGrammarTreeVisitor.enterLabeledElement(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerAlternative(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerAtom(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerBlock(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerCommand(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerCommandExpr(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerElement(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerElements(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerRule(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerRuleBlock(GrammarAST tree) protected voidGrammarTreeVisitor.enterLexerSubrule(GrammarAST tree) protected voidGrammarTreeVisitor.enterLocals(GrammarAST tree) protected voidGrammarTreeVisitor.enterMode(GrammarAST tree) protected voidGrammarTreeVisitor.enterOption(GrammarAST tree) protected voidGrammarTreeVisitor.enterOptionsSpec(GrammarAST tree) protected voidGrammarTreeVisitor.enterOptionValue(GrammarAST tree) protected voidGrammarTreeVisitor.enterPrequelConstruct(GrammarAST tree) protected voidGrammarTreeVisitor.enterPrequelConstructs(GrammarAST tree) protected voidGrammarTreeVisitor.enterRange(GrammarAST tree) protected voidGrammarTreeVisitor.enterRule(GrammarAST tree) protected voidGrammarTreeVisitor.enterRuleAction(GrammarAST tree) protected voidGrammarTreeVisitor.enterRuleBlock(GrammarAST tree) protected voidGrammarTreeVisitor.enterRuleModifier(GrammarAST tree) protected voidGrammarTreeVisitor.enterRuleref(GrammarAST tree) protected voidGrammarTreeVisitor.enterRuleReturns(GrammarAST tree) protected voidGrammarTreeVisitor.enterRules(GrammarAST tree) protected voidGrammarTreeVisitor.enterSetElement(GrammarAST tree) protected voidGrammarTreeVisitor.enterSubrule(GrammarAST tree) protected voidGrammarTreeVisitor.enterTerminal(GrammarAST tree) protected voidGrammarTreeVisitor.enterThrowsSpec(GrammarAST tree) protected voidGrammarTreeVisitor.enterTokenSpec(GrammarAST tree) protected voidGrammarTreeVisitor.enterTokensSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitAction(GrammarAST tree) protected voidGrammarTreeVisitor.exitActionElement(GrammarAST tree) protected voidGrammarTreeVisitor.exitAstOperand(GrammarAST tree) protected voidGrammarTreeVisitor.exitAtom(GrammarAST tree) protected voidGrammarTreeVisitor.exitBlock(GrammarAST tree) protected voidGrammarTreeVisitor.exitBlockSet(GrammarAST tree) protected voidGrammarTreeVisitor.exitBlockSuffix(GrammarAST tree) protected voidGrammarTreeVisitor.exitChannelSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitChannelsSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitDelegateGrammar(GrammarAST tree) protected voidGrammarTreeVisitor.exitDelegateGrammars(GrammarAST tree) protected voidGrammarTreeVisitor.exitEbnfSuffix(GrammarAST tree) protected voidGrammarTreeVisitor.exitElement(GrammarAST tree) protected voidGrammarTreeVisitor.exitElementOption(GrammarAST tree) protected voidGrammarTreeVisitor.exitElementOptions(GrammarAST tree) protected voidGrammarTreeVisitor.exitExceptionGroup(GrammarAST tree) protected voidGrammarTreeVisitor.exitExceptionHandler(GrammarAST tree) protected voidGrammarTreeVisitor.exitFinallyClause(GrammarAST tree) protected voidGrammarTreeVisitor.exitGrammarSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitLabeledElement(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerAlternative(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerAtom(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerBlock(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerCommand(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerCommandExpr(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerElement(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerElements(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerRule(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerRuleBlock(GrammarAST tree) protected voidGrammarTreeVisitor.exitLexerSubrule(GrammarAST tree) protected voidGrammarTreeVisitor.exitLocals(GrammarAST tree) protected voidGrammarTreeVisitor.exitMode(GrammarAST tree) protected voidGrammarTreeVisitor.exitOption(GrammarAST tree) protected voidGrammarTreeVisitor.exitOptionsSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitOptionValue(GrammarAST tree) protected voidGrammarTreeVisitor.exitPrequelConstruct(GrammarAST tree) protected voidGrammarTreeVisitor.exitPrequelConstructs(GrammarAST tree) protected voidGrammarTreeVisitor.exitRange(GrammarAST tree) protected voidGrammarTreeVisitor.exitRule(GrammarAST tree) protected voidGrammarTreeVisitor.exitRuleAction(GrammarAST tree) protected voidGrammarTreeVisitor.exitRuleBlock(GrammarAST tree) protected voidGrammarTreeVisitor.exitRuleModifier(GrammarAST tree) protected voidGrammarTreeVisitor.exitRuleref(GrammarAST tree) protected voidGrammarTreeVisitor.exitRuleReturns(GrammarAST tree) protected voidGrammarTreeVisitor.exitRules(GrammarAST tree) protected voidGrammarTreeVisitor.exitSetElement(GrammarAST tree) protected voidGrammarTreeVisitor.exitSubrule(GrammarAST tree) protected voidGrammarTreeVisitor.exitTerminal(GrammarAST tree) protected voidGrammarTreeVisitor.exitThrowsSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitTokenSpec(GrammarAST tree) protected voidGrammarTreeVisitor.exitTokensSpec(GrammarAST tree) voidGrammarTreeVisitor.finishGrammar(GrammarRootAST root, GrammarAST ID) voidGrammarTreeVisitor.finishLexerRule(RuleAST rule, GrammarAST ID, GrammarAST block) voidGrammarTreeVisitor.finishPrequels(GrammarAST firstPrequel) voidGrammarTreeVisitor.finishRule(RuleAST rule, GrammarAST ID, GrammarAST block) voidGrammarTreeVisitor.finishRules(GrammarAST rule) voidGrammarTreeVisitor.globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action) voidGrammarTreeVisitor.grammarOption(GrammarAST ID, GrammarAST valueAST) voidGrammarTreeVisitor.importGrammar(GrammarAST label, GrammarAST ID) voidGrammarTreeVisitor.label(GrammarAST op, GrammarAST ID, GrammarAST element) voidGrammarTreeVisitor.lexerCallCommand(int outerAltNumber, GrammarAST ID, GrammarAST arg) voidGrammarTreeVisitor.lexerCommand(int outerAltNumber, GrammarAST ID) voidGrammarTreeVisitor.modeDef(GrammarAST m, GrammarAST ID) final ATNFactory.HandleATNBuilder.ruleBlock(GrammarAST ebnfRoot) voidGrammarTreeVisitor.ruleCatch(GrammarAST arg, ActionAST action) voidGrammarTreeVisitor.ruleOption(GrammarAST ID, GrammarAST valueAST) voidGrammarTreeVisitor.ruleRef(GrammarAST ref, ActionAST arg) voidLeftRecursiveRuleWalker.setReturnValues(GrammarAST t) voidGrammarTreeVisitor.visit(GrammarAST t, String ruleName) voidGrammarTreeVisitor.visitGrammar(GrammarAST t) voidGrammarTreeVisitor.wildcardRef(GrammarAST ref) Method parameters in org.antlr.v4.parse with type arguments of type GrammarASTModifier and TypeMethodDescriptionvoidGrammarTreeVisitor.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidGrammarTreeVisitor.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(package private) List<GrammarAST> SymbolCollector.namedActionsTrack action name node in @parser::members {...} or @members {...}SymbolCollector.qualifiedRulerefsSymbolCollector.rulerefsorg.stringtemplate.v4.misc.MultiMap<String, GrammarAST> RuleCollector.ruleToAltLabelsSymbolCollector.terminalsSymbolCollector.tokenIDRefsSymbolCollector.tokensDefsMethods in org.antlr.v4.semantics with parameters of type GrammarASTModifier and TypeMethodDescriptionvoidBasicSemanticChecks.blockOption(GrammarAST ID, GrammarAST valueAST) voidSymbolCollector.blockOption(GrammarAST ID, GrammarAST valueAST) private voidBasicSemanticChecks.checkCaseInsensitiveOption(org.antlr.runtime.Token optionID, GrammarAST valueAST, int parentType) protected voidBasicSemanticChecks.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})))(package private) booleanBasicSemanticChecks.checkElementOptions(GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST) Check option is appropriate for elem; parent of ID is ELEMENT_OPTIONSvoidSymbolChecks.checkForLabelConflict(Rule r, GrammarAST labelID) (package private) voidBasicSemanticChecks.checkNumRules(GrammarAST rulesNode) (package private) voidBasicSemanticChecks.checkOptions(GrammarAST parent, org.antlr.runtime.Token optionID, GrammarAST valueAST) Check option is appropriate for grammar, rule, subrule(package private) booleanBasicSemanticChecks.checkRuleRefOptions(RuleRefAST elem, GrammarAST ID, GrammarAST valueAST) (package private) booleanBasicSemanticChecks.checkTokenOptions(TerminalAST elem, GrammarAST ID, GrammarAST valueAST) voidBasicSemanticChecks.defineChannel(GrammarAST ID) voidSymbolCollector.defineChannel(GrammarAST ID) voidBasicSemanticChecks.defineToken(GrammarAST ID) voidSymbolCollector.defineToken(GrammarAST ID) voidBasicSemanticChecks.discoverGrammar(GrammarRootAST root, GrammarAST ID) voidBasicSemanticChecks.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidRuleCollector.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidSymbolCollector.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidBasicSemanticChecks.discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) voidRuleCollector.discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) voidSymbolCollector.discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) voidBasicSemanticChecks.discoverRules(GrammarAST rules) voidBasicSemanticChecks.elementOption(GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST) voidSymbolCollector.elementOption(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST) protected voidBasicSemanticChecks.enterChannelsSpec(GrammarAST tree) protected voidBasicSemanticChecks.enterLexerCommand(GrammarAST tree) protected voidBasicSemanticChecks.enterLexerElement(GrammarAST tree) protected voidBasicSemanticChecks.enterMode(GrammarAST tree) protected voidBasicSemanticChecks.enterTerminal(GrammarAST tree) protected voidBasicSemanticChecks.exitLexerRule(GrammarAST tree) protected voidBasicSemanticChecks.exitMode(GrammarAST tree) voidBasicSemanticChecks.finishPrequels(GrammarAST firstPrequel) voidBasicSemanticChecks.finishRule(RuleAST rule, GrammarAST ID, GrammarAST block) private BooleanRuleCollector.getCaseInsensitiveValue(GrammarAST optionID, GrammarAST valueAST) voidSymbolCollector.globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action) voidBasicSemanticChecks.grammarOption(GrammarAST ID, GrammarAST valueAST) voidRuleCollector.grammarOption(GrammarAST ID, GrammarAST valueAST) voidSymbolCollector.grammarOption(GrammarAST ID, GrammarAST valueAST) voidBasicSemanticChecks.importGrammar(GrammarAST label, GrammarAST ID) voidBasicSemanticChecks.label(GrammarAST op, GrammarAST ID, GrammarAST element) voidSymbolCollector.label(GrammarAST op, GrammarAST ID, GrammarAST element) voidBasicSemanticChecks.modeDef(GrammarAST m, GrammarAST ID) voidRuleCollector.process(GrammarAST ast) voidSymbolCollector.process(GrammarAST ast) voidSymbolCollector.ruleCatch(GrammarAST arg, ActionAST action) voidBasicSemanticChecks.ruleOption(GrammarAST ID, GrammarAST valueAST) voidSymbolCollector.ruleOption(GrammarAST ID, GrammarAST valueAST) voidBasicSemanticChecks.ruleRef(GrammarAST ref, ActionAST arg) voidSymbolCollector.ruleRef(GrammarAST ref, ActionAST arg) private voidSymbolCollector.setActionResolver(GrammarAST valueAST) In case of option id={...}, set resolve in case they use $fooMethod parameters in org.antlr.v4.semantics with type arguments of type GrammarASTModifier and TypeMethodDescription(package private) voidSemanticPipeline.assignChannelTypes(Grammar g, List<GrammarAST> channelDefs) Assign constant values to custom channels defined in a grammar.(package private) voidSemanticPipeline.assignLexerTokenTypes(Grammar g, List<GrammarAST> tokensDefs) (package private) voidSemanticPipeline.assignTokenTypes(Grammar g, List<GrammarAST> tokensDefs, List<GrammarAST> tokenIDs, List<GrammarAST> terminals) voidSymbolChecks.checkActionRedefinitions(List<GrammarAST> actions) voidSymbolChecks.checkForQualifiedRuleIssues(Grammar g, List<GrammarAST> qualifiedRuleRefs) (package private) voidBasicSemanticChecks.checkNumPrequels(List<GrammarAST> options, List<GrammarAST> imports, List<GrammarAST> tokens) voidSymbolChecks.checkRuleArgs(Grammar g, List<GrammarAST> rulerefs) voidBasicSemanticChecks.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidRuleCollector.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidSymbolCollector.discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block) voidBasicSemanticChecks.discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) voidRuleCollector.discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) voidSymbolCollector.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.astLabelElementPair.elementLabelElementPair.labelFields in org.antlr.v4.tool with type parameters of type GrammarASTModifier and TypeFieldDescriptionRule.exceptionsTrack exception handlers; points at "catch" node of (catch exception action) don't track finally actionLeftRecursiveRule.leftRecursiveRuleRefLabelsDid we delete any labels on direct left-recur refs? Points at ID of ^(= ID el)Rule.modifiersorg.stringtemplate.v4.misc.MultiMap<String, GrammarAST> Alternative.ruleRefsorg.stringtemplate.v4.misc.MultiMap<String, GrammarAST> Alternative.ruleRefsInActionsorg.stringtemplate.v4.misc.MultiMap<String, GrammarAST> Alternative.tokenRefsInActionsMethods 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 voidGrammarTransformPipeline.augmentTokensWithOriginalPosition(Grammar g, GrammarAST tree) protected static booleanGrammar.defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST, GrammarAST>> lexerRuleToStringLiteral) voidGrammar.defineAction(GrammarAST atAST) GrammarTransformPipeline.expandParameterizedLoop(GrammarAST t) voidGrammarTransformPipeline.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.voidGrammarTransformPipeline.reduceBlocksToSets(GrammarAST root) static voidGrammarTransformPipeline.setGrammarPtr(Grammar g, GrammarAST tree) Utility visitor that sets grammar ptr in each nodestatic voidGrammar.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 booleanGrammar.defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST, GrammarAST>> lexerRuleToStringLiteral) protected static booleanGrammar.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 TypeClassDescriptionclassclassAny ALT (which can be child of ALT_REWRITE node)classclassA node representing erroneous token range in token streamclassclassclassclassclassclassclassclassclassclassclassclassFields in org.antlr.v4.tool.ast declared as GrammarASTModifier and TypeFieldDescriptionAltAST.altLabelIf someone specified an outermost alternative label with #foo.(package private) GrammarASTActionAST.scopeFields 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.ActionAST.getScope()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 TypeMethodDescriptionvoidGrammarASTWithOptions.setOption(String key, GrammarAST node) voidActionAST.setScope(GrammarAST scope) 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 TypeMethodDescriptionvoidGrammarAST.getNodesWithTypePreorderDFS_(List<GrammarAST> nodes, IntervalSet types) Constructors in org.antlr.v4.tool.ast with parameters of type GrammarAST