Package org.antlr.v4.tool
Class Grammar.AltLabelVisitor
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.tree.TreeParser
org.antlr.v4.parse.GrammarTreeVisitor
org.antlr.v4.tool.Grammar.AltLabelVisitor
- Enclosing class:
- Grammar
-
Nested Class Summary
Nested classes/interfaces inherited from class org.antlr.v4.parse.GrammarTreeVisitor
GrammarTreeVisitor.action_return, GrammarTreeVisitor.actionElement_return, GrammarTreeVisitor.alternative_return, GrammarTreeVisitor.astOperand_return, GrammarTreeVisitor.atom_return, GrammarTreeVisitor.block_return, GrammarTreeVisitor.blockSet_return, GrammarTreeVisitor.blockSuffix_return, GrammarTreeVisitor.channelSpec_return, GrammarTreeVisitor.channelsSpec_return, GrammarTreeVisitor.delegateGrammar_return, GrammarTreeVisitor.delegateGrammars_return, GrammarTreeVisitor.DFA38, GrammarTreeVisitor.ebnfSuffix_return, GrammarTreeVisitor.element_return, GrammarTreeVisitor.elementOption_return, GrammarTreeVisitor.elementOptions_return, GrammarTreeVisitor.exceptionGroup_return, GrammarTreeVisitor.exceptionHandler_return, GrammarTreeVisitor.finallyClause_return, GrammarTreeVisitor.grammarSpec_return, GrammarTreeVisitor.labeledElement_return, GrammarTreeVisitor.labeledLexerElement_return, GrammarTreeVisitor.lexerAlternative_return, GrammarTreeVisitor.lexerAtom_return, GrammarTreeVisitor.lexerBlock_return, GrammarTreeVisitor.lexerCommand_return, GrammarTreeVisitor.lexerCommandExpr_return, GrammarTreeVisitor.lexerElement_return, GrammarTreeVisitor.lexerElements_return, GrammarTreeVisitor.lexerOuterAlternative_return, GrammarTreeVisitor.lexerRule_return, GrammarTreeVisitor.lexerRuleBlock_return, GrammarTreeVisitor.lexerSubrule_return, GrammarTreeVisitor.locals_return, GrammarTreeVisitor.mode_return, GrammarTreeVisitor.option_return, GrammarTreeVisitor.optionsSpec_return, GrammarTreeVisitor.optionValue_return, GrammarTreeVisitor.outerAlternative_return, GrammarTreeVisitor.prequelConstruct_return, GrammarTreeVisitor.prequelConstructs_return, GrammarTreeVisitor.range_return, GrammarTreeVisitor.rule_return, GrammarTreeVisitor.ruleAction_return, GrammarTreeVisitor.ruleBlock_return, GrammarTreeVisitor.ruleModifier_return, GrammarTreeVisitor.ruleref_return, GrammarTreeVisitor.ruleReturns_return, GrammarTreeVisitor.rules_return, GrammarTreeVisitor.setElement_return, GrammarTreeVisitor.subrule_return, GrammarTreeVisitor.terminal_return, GrammarTreeVisitor.throwsSpec_return, GrammarTreeVisitor.tokenSpec_return, GrammarTreeVisitor.tokensSpec_return -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.antlr.v4.parse.GrammarTreeVisitor
ACTION, ACTION_CHAR_LITERAL, ACTION_ESC, ACTION_STRING_LITERAL, ALT, ALTLIST, ARG, ARG_ACTION, ARG_OR_CHARSET, ARGLIST, ASSIGN, AT, BLOCK, CATCH, CHANNELS, CHAR_RANGE, CLOSURE, COLON, COLONCOLON, COMBINED, COMMA, COMMENT, currentModeName, currentOuterAltNumber, currentOuterAltRoot, currentRuleAST, currentRuleName, dfa38, DOC_COMMENT, DOLLAR, DOT, ELEMENT_OPTIONS, EOF, EPSILON, ERRCHAR, ESC_SEQ, FINALLY, FOLLOW_ACTION_in_action606, FOLLOW_ACTION_in_actionElement1726, FOLLOW_ACTION_in_actionElement1734, FOLLOW_ACTION_in_block2477, FOLLOW_ACTION_in_element1915, FOLLOW_ACTION_in_element1944, FOLLOW_ACTION_in_elementOption2780, FOLLOW_ACTION_in_exceptionHandler1000, FOLLOW_ACTION_in_finallyClause1027, FOLLOW_ACTION_in_lexerElement1475, FOLLOW_ACTION_in_lexerElement1504, FOLLOW_action_in_prequelConstruct234, FOLLOW_ACTION_in_ruleAction1141, FOLLOW_ALT_in_alternative1777, FOLLOW_ALT_in_alternative1790, FOLLOW_ALT_in_lexerElements1430, FOLLOW_alternative_in_block2480, FOLLOW_alternative_in_outerAlternative1364, FOLLOW_ARG_ACTION_in_exceptionHandler998, FOLLOW_ARG_ACTION_in_locals1057, FOLLOW_ARG_ACTION_in_rule819, FOLLOW_ARG_ACTION_in_ruleref2514, FOLLOW_ARG_ACTION_in_ruleReturns1082, FOLLOW_ASSIGN_in_delegateGrammar430, FOLLOW_ASSIGN_in_elementOption2730, FOLLOW_ASSIGN_in_elementOption2754, FOLLOW_ASSIGN_in_elementOption2774, FOLLOW_ASSIGN_in_elementOption2796, FOLLOW_ASSIGN_in_option295, FOLLOW_AT_in_action595, FOLLOW_AT_in_ruleAction1137, FOLLOW_atom_in_astOperand2006, FOLLOW_atom_in_element1903, FOLLOW_block_in_astOperand2023, FOLLOW_BLOCK_in_block2469, FOLLOW_block_in_element1984, FOLLOW_block_in_labeledLexerElement1565, FOLLOW_BLOCK_in_lexerBlock1590, FOLLOW_BLOCK_in_lexerRuleBlock1219, FOLLOW_BLOCK_in_ruleBlock1283, FOLLOW_block_in_subrule2081, FOLLOW_block_in_subrule2088, FOLLOW_blockSet_in_astOperand2014, FOLLOW_blockSet_in_atom2272, FOLLOW_blockSet_in_element1975, FOLLOW_blockSet_in_lexerAtom1639, FOLLOW_blockSet_in_lexerAtom1650, FOLLOW_blockSuffix_in_lexerSubrule2113, FOLLOW_blockSuffix_in_subrule2079, FOLLOW_CATCH_in_exceptionHandler996, FOLLOW_CHANNELS_in_channelsSpec542, FOLLOW_channelSpec_in_channelsSpec544, FOLLOW_channelsSpec_in_prequelConstruct224, FOLLOW_delegateGrammar_in_delegateGrammars401, FOLLOW_delegateGrammars_in_prequelConstruct204, FOLLOW_DOT_in_atom2210, FOLLOW_DOT_in_atom2221, FOLLOW_ebnfSuffix_in_blockSuffix2149, FOLLOW_element_in_alternative1782, FOLLOW_element_in_labeledElement2054, FOLLOW_ELEMENT_OPTIONS_in_elementOptions2677, FOLLOW_elementOption_in_elementOptions2679, FOLLOW_elementOptions_in_actionElement1736, FOLLOW_elementOptions_in_actionElement1754, FOLLOW_elementOptions_in_alternative1779, FOLLOW_elementOptions_in_alternative1792, FOLLOW_elementOptions_in_atom2237, FOLLOW_elementOptions_in_element1946, FOLLOW_elementOptions_in_element1959, FOLLOW_elementOptions_in_lexerAtom1663, FOLLOW_elementOptions_in_lexerElement1506, FOLLOW_elementOptions_in_lexerElement1519, FOLLOW_elementOptions_in_ruleref2517, FOLLOW_elementOptions_in_setElement2335, FOLLOW_elementOptions_in_setElement2349, FOLLOW_elementOptions_in_terminal2590, FOLLOW_elementOptions_in_terminal2629, FOLLOW_EPSILON_in_alternative1795, FOLLOW_EPSILON_in_lexerElement1527, FOLLOW_exceptionGroup_in_rule920, FOLLOW_exceptionHandler_in_exceptionGroup967, FOLLOW_FINALLY_in_finallyClause1025, FOLLOW_finallyClause_in_exceptionGroup970, FOLLOW_FRAGMENT_in_lexerRule722, FOLLOW_GRAMMAR_in_grammarSpec85, FOLLOW_ID_in_action599, FOLLOW_ID_in_action604, FOLLOW_ID_in_atom2212, FOLLOW_ID_in_atom2223, FOLLOW_ID_in_channelSpec567, FOLLOW_ID_in_delegateGrammar434, FOLLOW_ID_in_delegateGrammar438, FOLLOW_ID_in_delegateGrammar453, FOLLOW_ID_in_elementOption2710, FOLLOW_ID_in_elementOption2734, FOLLOW_ID_in_elementOption2738, FOLLOW_ID_in_elementOption2756, FOLLOW_ID_in_elementOption2776, FOLLOW_ID_in_elementOption2798, FOLLOW_ID_in_grammarSpec87, FOLLOW_ID_in_labeledElement2052, FOLLOW_ID_in_labeledLexerElement1560, FOLLOW_ID_in_lexerCommand1823, FOLLOW_ID_in_lexerCommand1841, FOLLOW_ID_in_mode674, FOLLOW_ID_in_option297, FOLLOW_ID_in_ruleAction1139, FOLLOW_ID_in_throwsSpec1110, FOLLOW_ID_in_tokenSpec512, FOLLOW_IMPORT_in_delegateGrammars399, FOLLOW_INT_in_elementOption2802, FOLLOW_labeledElement_in_element1898, FOLLOW_labeledLexerElement_in_lexerElement1458, FOLLOW_LEXER_ACTION_CALL_in_lexerCommand1821, FOLLOW_LEXER_ALT_ACTION_in_lexerAlternative1386, FOLLOW_LEXER_CHAR_SET_in_lexerAtom1682, FOLLOW_LEXER_CHAR_SET_in_setElement2444, FOLLOW_lexerAlternative_in_lexerBlock1595, FOLLOW_lexerAlternative_in_lexerOuterAlternative1342, FOLLOW_lexerAtom_in_labeledLexerElement1563, FOLLOW_lexerAtom_in_lexerElement1463, FOLLOW_lexerBlock_in_lexerSubrule2115, FOLLOW_lexerBlock_in_lexerSubrule2122, FOLLOW_lexerCommand_in_lexerAlternative1390, FOLLOW_lexerCommandExpr_in_lexerCommand1825, FOLLOW_lexerElement_in_lexerElements1432, FOLLOW_lexerElements_in_lexerAlternative1388, FOLLOW_lexerElements_in_lexerAlternative1402, FOLLOW_lexerOuterAlternative_in_lexerRuleBlock1238, FOLLOW_lexerRule_in_mode678, FOLLOW_lexerRule_in_rules641, FOLLOW_lexerRuleBlock_in_lexerRule747, FOLLOW_lexerSubrule_in_lexerElement1468, FOLLOW_LOCALS_in_locals1055, FOLLOW_locals_in_rule858, FOLLOW_mode_in_grammarSpec125, FOLLOW_MODE_in_mode672, FOLLOW_NOT_in_astOperand2012, FOLLOW_NOT_in_astOperand2021, FOLLOW_NOT_in_element1973, FOLLOW_NOT_in_element1982, FOLLOW_NOT_in_lexerAtom1637, FOLLOW_option_in_optionsSpec261, FOLLOW_OPTIONS_in_optionsSpec259, FOLLOW_optionsSpec_in_block2471, FOLLOW_optionsSpec_in_lexerBlock1592, FOLLOW_optionsSpec_in_prequelConstruct194, FOLLOW_optionsSpec_in_rule873, FOLLOW_optionValue_in_option301, FOLLOW_outerAlternative_in_ruleBlock1302, FOLLOW_prequelConstruct_in_prequelConstructs167, FOLLOW_prequelConstructs_in_grammarSpec106, FOLLOW_range_in_element1967, FOLLOW_range_in_lexerAtom1692, FOLLOW_RANGE_in_range2554, FOLLOW_RANGE_in_setElement2413, FOLLOW_RETURNS_in_ruleReturns1080, FOLLOW_RULE_in_lexerRule704, FOLLOW_RULE_in_rule792, FOLLOW_rule_in_rules639, FOLLOW_RULE_REF_in_rule794, FOLLOW_RULE_REF_in_ruleref2510, FOLLOW_ruleAction_in_block2474, FOLLOW_ruleAction_in_rule887, FOLLOW_ruleBlock_in_rule918, FOLLOW_ruleModifier_in_rule808, FOLLOW_RULEMODIFIERS_in_lexerRule718, FOLLOW_RULEMODIFIERS_in_rule803, FOLLOW_ruleref_in_atom2225, FOLLOW_ruleref_in_atom2282, FOLLOW_ruleref_in_lexerAtom1702, FOLLOW_ruleReturns_in_rule832, FOLLOW_rules_in_grammarSpec123, FOLLOW_RULES_in_rules634, FOLLOW_SEMPRED_in_actionElement1744, FOLLOW_SEMPRED_in_actionElement1752, FOLLOW_SEMPRED_in_element1929, FOLLOW_SEMPRED_in_element1957, FOLLOW_SEMPRED_in_lexerElement1489, FOLLOW_SEMPRED_in_lexerElement1517, FOLLOW_SET_in_blockSet2307, FOLLOW_set_in_labeledElement2046, FOLLOW_set_in_labeledLexerElement1554, FOLLOW_setElement_in_blockSet2309, FOLLOW_STRING_LITERAL_in_elementOption2760, FOLLOW_STRING_LITERAL_in_range2556, FOLLOW_STRING_LITERAL_in_range2558, FOLLOW_STRING_LITERAL_in_setElement2333, FOLLOW_STRING_LITERAL_in_setElement2359, FOLLOW_STRING_LITERAL_in_setElement2417, FOLLOW_STRING_LITERAL_in_setElement2421, FOLLOW_STRING_LITERAL_in_terminal2588, FOLLOW_STRING_LITERAL_in_terminal2613, FOLLOW_subrule_in_element1908, FOLLOW_terminal_in_atom2214, FOLLOW_terminal_in_atom2264, FOLLOW_terminal_in_lexerAtom1626, FOLLOW_THROWS_in_throwsSpec1108, FOLLOW_throwsSpec_in_rule845, FOLLOW_TOKEN_REF_in_lexerRule706, FOLLOW_TOKEN_REF_in_setElement2347, FOLLOW_TOKEN_REF_in_setElement2384, FOLLOW_TOKEN_REF_in_terminal2627, FOLLOW_TOKEN_REF_in_terminal2640, FOLLOW_TOKENS_SPEC_in_tokensSpec487, FOLLOW_tokenSpec_in_tokensSpec489, FOLLOW_tokensSpec_in_prequelConstruct214, FOLLOW_WILDCARD_in_atom2235, FOLLOW_WILDCARD_in_atom2248, FOLLOW_WILDCARD_in_lexerAtom1661, FOLLOW_WILDCARD_in_lexerAtom1674, FRAGMENT, GRAMMAR, grammarName, GT, HEX_DIGIT, ID, IMPORT, INITACTION, INT, LABEL, LEXER, LEXER_ACTION_CALL, LEXER_ALT_ACTION, LEXER_CHAR_SET, LIST, LOCALS, LPAREN, LT, MODE, NameChar, NameStartChar, NESTED_ACTION, NLCHARS, NOT, OPTIONAL, OPTIONS, OR, PARSER, PLUS, PLUS_ASSIGN, POSITIVE_CLOSURE, POUND, PREC_RULE, PRIVATE, PROTECTED, PUBLIC, QUESTION, RANGE, RARROW, RBRACE, RESULT, RET, RETURNS, rewriteEBNFLevel, RPAREN, RULE, RULE_REF, RULEACTIONS, RULEMODIFIERS, RULES, SEMI, SEMPRED, SET, SRC, STAR, STRING_LITERAL, SYNPRED, TEMPLATE, THROWS, TOKEN_REF, tokenNames, TOKENS_SPEC, TREE_GRAMMAR, UNICODE_ESC, UNICODE_EXTENDED_ESC, UnicodeBOM, WILDCARD, WS, WSCHARS, WSNLCHARSFields inherited from class org.antlr.runtime.tree.TreeParser
DOWN, input, UPFields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.antlr.v4.parse.GrammarTreeVisitor
action, actionElement, actionInAlt, alternative, astOperand, atom, block, blockOption, blockSet, blockSuffix, channelSpec, channelsSpec, defineChannel, defineToken, delegateGrammar, delegateGrammars, discoverAlt, discoverGrammar, discoverLexerRule, discoverRule, discoverRules, ebnfSuffix, element, elementOption, elementOption, elementOptions, enterAction, enterActionElement, enterAlternative, enterAstOperand, enterAtom, enterBlock, enterBlockSet, enterBlockSuffix, enterChannelSpec, enterChannelsSpec, enterDelegateGrammar, enterDelegateGrammars, enterEbnfSuffix, enterElement, enterElementOption, enterElementOptions, enterExceptionGroup, enterExceptionHandler, enterFinallyClause, enterGrammarSpec, enterLabeledElement, enterLabeledLexerElement, enterLexerAlternative, enterLexerAtom, enterLexerBlock, enterLexerCommand, enterLexerCommandExpr, enterLexerElement, enterLexerElements, enterLexerOuterAlternative, enterLexerRule, enterLexerRuleBlock, enterLexerSubrule, enterLocals, enterMode, enterOption, enterOptionsSpec, enterOptionValue, enterOuterAlternative, enterPrequelConstruct, enterPrequelConstructs, enterRange, enterRule, enterRuleAction, enterRuleBlock, enterRuleModifier, enterRuleref, enterRuleReturns, enterRules, enterSetElement, enterSubrule, enterTerminal, enterThrowsSpec, enterTokenSpec, enterTokensSpec, exceptionGroup, exceptionHandler, exitAction, exitActionElement, exitAlternative, exitAstOperand, exitAtom, exitBlock, exitBlockSet, exitBlockSuffix, exitChannelSpec, exitChannelsSpec, exitDelegateGrammar, exitDelegateGrammars, exitEbnfSuffix, exitElement, exitElementOption, exitElementOptions, exitExceptionGroup, exitExceptionHandler, exitFinallyClause, exitGrammarSpec, exitLabeledElement, exitLabeledLexerElement, exitLexerAlternative, exitLexerAtom, exitLexerBlock, exitLexerCommand, exitLexerCommandExpr, exitLexerElement, exitLexerElements, exitLexerOuterAlternative, exitLexerRule, exitLexerRuleBlock, exitLexerSubrule, exitLocals, exitMode, exitOption, exitOptionsSpec, exitOptionValue, exitOuterAlternative, exitPrequelConstruct, exitPrequelConstructs, exitRange, exitRule, exitRuleAction, exitRuleBlock, exitRuleModifier, exitRuleref, exitRuleReturns, exitRules, exitSetElement, exitSubrule, exitTerminal, exitThrowsSpec, exitTokenSpec, exitTokensSpec, finallyAction, finallyClause, finishAlt, finishGrammar, finishLexerRule, finishOuterAlt, finishPrequels, finishRule, finishRules, getDelegates, getErrorManager, getGrammarFileName, getTokenNames, globalNamedAction, grammarOption, grammarSpec, importGrammar, label, labeledElement, labeledLexerElement, lexerAlternative, lexerAtom, lexerBlock, lexerCallCommand, lexerCommand, lexerCommand, lexerCommandExpr, lexerElement, lexerElements, lexerOuterAlternative, lexerRule, lexerRuleBlock, lexerSubrule, locals, mode, modeDef, option, optionsSpec, optionValue, outerAlternative, prequelConstruct, prequelConstructs, range, rule, ruleAction, ruleBlock, ruleCatch, ruleModifier, ruleOption, ruleref, ruleRef, ruleReturns, rules, sempredInAlt, setElement, stringRef, subrule, terminal, throwsSpec, tokenRef, tokenSpec, tokensSpec, traceIn, traceOut, visit, visitGrammar, wildcardRefMethods inherited from class org.antlr.runtime.tree.TreeParser
getAncestor, getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, inContext, inContext, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStreamMethods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut
-
Field Details
-
labeledAlternatives
-
unlabeledAlternatives
-
-
Constructor Details
-
AltLabelVisitor
public AltLabelVisitor(org.antlr.runtime.tree.TreeNodeStream input)
-
-
Method Details
-
getLabeledAlternatives
-
getUnlabeledAlternatives
-
discoverOuterAlt
- Overrides:
discoverOuterAltin classGrammarTreeVisitor
-