protected static class Grammar.AltLabelVisitor extends 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.DFA41, 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_returnACTION, 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, dfa41, DOC_COMMENT, DOLLAR, DOT, ELEMENT_OPTIONS, EOF, EPSILON, ERRCHAR, ESC_SEQ, FINALLY, FOLLOW_ACTION_in_action599, FOLLOW_ACTION_in_actionElement1725, FOLLOW_ACTION_in_actionElement1733, FOLLOW_ACTION_in_block2472, FOLLOW_ACTION_in_element1914, FOLLOW_ACTION_in_element1943, FOLLOW_ACTION_in_elementOption2775, FOLLOW_ACTION_in_exceptionHandler999, FOLLOW_ACTION_in_finallyClause1026, FOLLOW_ACTION_in_lexerElement1474, FOLLOW_ACTION_in_lexerElement1503, FOLLOW_action_in_prequelConstruct237, FOLLOW_ACTION_in_ruleAction1140, FOLLOW_ALT_in_alternative1776, FOLLOW_ALT_in_alternative1789, FOLLOW_ALT_in_lexerElements1429, FOLLOW_alternative_in_block2475, FOLLOW_alternative_in_outerAlternative1363, FOLLOW_ARG_ACTION_in_exceptionHandler997, FOLLOW_ARG_ACTION_in_locals1056, FOLLOW_ARG_ACTION_in_rule818, FOLLOW_ARG_ACTION_in_ruleref2509, FOLLOW_ARG_ACTION_in_ruleReturns1081, FOLLOW_ASSIGN_in_delegateGrammar423, FOLLOW_ASSIGN_in_elementOption2725, FOLLOW_ASSIGN_in_elementOption2749, FOLLOW_ASSIGN_in_elementOption2769, FOLLOW_ASSIGN_in_elementOption2791, FOLLOW_ASSIGN_in_option298, FOLLOW_AT_in_action588, FOLLOW_AT_in_ruleAction1136, FOLLOW_atom_in_astOperand2001, FOLLOW_atom_in_element1902, FOLLOW_block_in_astOperand2018, FOLLOW_BLOCK_in_block2464, FOLLOW_block_in_element1979, FOLLOW_block_in_labeledLexerElement1564, FOLLOW_BLOCK_in_lexerBlock1589, FOLLOW_BLOCK_in_lexerRuleBlock1218, FOLLOW_BLOCK_in_ruleBlock1282, FOLLOW_block_in_subrule2076, FOLLOW_block_in_subrule2083, FOLLOW_blockSet_in_astOperand2009, FOLLOW_blockSet_in_atom2267, FOLLOW_blockSet_in_element1970, FOLLOW_blockSet_in_lexerAtom1638, FOLLOW_blockSet_in_lexerAtom1649, FOLLOW_blockSuffix_in_lexerSubrule2108, FOLLOW_blockSuffix_in_subrule2074, FOLLOW_CATCH_in_exceptionHandler995, FOLLOW_CHANNELS_in_channelsSpec535, FOLLOW_channelSpec_in_channelsSpec537, FOLLOW_channelsSpec_in_prequelConstruct227, FOLLOW_delegateGrammar_in_delegateGrammars394, FOLLOW_delegateGrammars_in_prequelConstruct207, FOLLOW_DOC_COMMENT_in_grammarSpec91, FOLLOW_DOC_COMMENT_in_lexerRule709, FOLLOW_DOC_COMMENT_in_rule797, FOLLOW_DOT_in_atom2205, FOLLOW_DOT_in_atom2216, FOLLOW_ebnfSuffix_in_blockSuffix2144, FOLLOW_element_in_alternative1781, FOLLOW_element_in_labeledElement2049, FOLLOW_ELEMENT_OPTIONS_in_elementOptions2672, FOLLOW_elementOption_in_elementOptions2674, FOLLOW_elementOptions_in_actionElement1735, FOLLOW_elementOptions_in_actionElement1753, FOLLOW_elementOptions_in_alternative1778, FOLLOW_elementOptions_in_alternative1791, FOLLOW_elementOptions_in_atom2232, FOLLOW_elementOptions_in_element1945, FOLLOW_elementOptions_in_element1958, FOLLOW_elementOptions_in_lexerAtom1662, FOLLOW_elementOptions_in_lexerElement1505, FOLLOW_elementOptions_in_lexerElement1518, FOLLOW_elementOptions_in_ruleref2512, FOLLOW_elementOptions_in_setElement2330, FOLLOW_elementOptions_in_setElement2344, FOLLOW_elementOptions_in_terminal2585, FOLLOW_elementOptions_in_terminal2624, FOLLOW_EPSILON_in_alternative1794, FOLLOW_EPSILON_in_lexerElement1526, FOLLOW_exceptionGroup_in_rule919, FOLLOW_exceptionHandler_in_exceptionGroup966, FOLLOW_FINALLY_in_finallyClause1024, FOLLOW_finallyClause_in_exceptionGroup969, FOLLOW_FRAGMENT_in_lexerRule718, FOLLOW_GRAMMAR_in_grammarSpec85, FOLLOW_ID_in_action592, FOLLOW_ID_in_action597, FOLLOW_ID_in_atom2207, FOLLOW_ID_in_atom2218, FOLLOW_ID_in_channelSpec560, FOLLOW_ID_in_delegateGrammar427, FOLLOW_ID_in_delegateGrammar431, FOLLOW_ID_in_delegateGrammar446, FOLLOW_ID_in_elementOption2705, FOLLOW_ID_in_elementOption2729, FOLLOW_ID_in_elementOption2733, FOLLOW_ID_in_elementOption2751, FOLLOW_ID_in_elementOption2771, FOLLOW_ID_in_elementOption2793, FOLLOW_ID_in_grammarSpec87, FOLLOW_ID_in_labeledElement2047, FOLLOW_ID_in_labeledLexerElement1559, FOLLOW_ID_in_lexerCommand1822, FOLLOW_ID_in_lexerCommand1840, FOLLOW_ID_in_mode667, FOLLOW_ID_in_option300, FOLLOW_ID_in_ruleAction1138, FOLLOW_ID_in_throwsSpec1109, FOLLOW_ID_in_tokenSpec505, FOLLOW_IMPORT_in_delegateGrammars392, FOLLOW_INT_in_elementOption2797, FOLLOW_labeledElement_in_element1897, FOLLOW_labeledLexerElement_in_lexerElement1457, FOLLOW_LEXER_ACTION_CALL_in_lexerCommand1820, FOLLOW_LEXER_ALT_ACTION_in_lexerAlternative1385, FOLLOW_LEXER_CHAR_SET_in_lexerAtom1681, FOLLOW_LEXER_CHAR_SET_in_setElement2439, FOLLOW_lexerAlternative_in_lexerBlock1594, FOLLOW_lexerAlternative_in_lexerOuterAlternative1341, FOLLOW_lexerAtom_in_labeledLexerElement1562, FOLLOW_lexerAtom_in_lexerElement1462, FOLLOW_lexerBlock_in_lexerSubrule2110, FOLLOW_lexerBlock_in_lexerSubrule2117, FOLLOW_lexerCommand_in_lexerAlternative1389, FOLLOW_lexerCommandExpr_in_lexerCommand1824, FOLLOW_lexerElement_in_lexerElements1431, FOLLOW_lexerElements_in_lexerAlternative1387, FOLLOW_lexerElements_in_lexerAlternative1401, FOLLOW_lexerOuterAlternative_in_lexerRuleBlock1237, FOLLOW_lexerRule_in_mode671, FOLLOW_lexerRule_in_rules634, FOLLOW_lexerRuleBlock_in_lexerRule743, FOLLOW_lexerSubrule_in_lexerElement1467, FOLLOW_LOCALS_in_locals1054, FOLLOW_locals_in_rule857, FOLLOW_mode_in_grammarSpec128, FOLLOW_MODE_in_mode665, FOLLOW_NOT_in_astOperand2007, FOLLOW_NOT_in_astOperand2016, FOLLOW_NOT_in_element1968, FOLLOW_NOT_in_element1977, FOLLOW_NOT_in_lexerAtom1636, FOLLOW_option_in_optionsSpec264, FOLLOW_OPTIONS_in_optionsSpec262, FOLLOW_optionsSpec_in_block2466, FOLLOW_optionsSpec_in_lexerBlock1591, FOLLOW_optionsSpec_in_prequelConstruct197, FOLLOW_optionsSpec_in_rule872, FOLLOW_optionValue_in_option304, FOLLOW_outerAlternative_in_ruleBlock1301, FOLLOW_prequelConstruct_in_prequelConstructs170, FOLLOW_prequelConstructs_in_grammarSpec109, FOLLOW_range_in_lexerAtom1691, FOLLOW_RANGE_in_range2549, FOLLOW_RANGE_in_setElement2408, FOLLOW_RETURNS_in_ruleReturns1079, FOLLOW_RULE_in_lexerRule697, FOLLOW_RULE_in_rule788, FOLLOW_rule_in_rules632, FOLLOW_RULE_REF_in_rule790, FOLLOW_RULE_REF_in_ruleref2505, FOLLOW_ruleAction_in_block2469, FOLLOW_ruleAction_in_rule886, FOLLOW_ruleBlock_in_rule917, FOLLOW_ruleModifier_in_rule807, FOLLOW_RULEMODIFIERS_in_lexerRule714, FOLLOW_RULEMODIFIERS_in_rule802, FOLLOW_ruleref_in_atom2220, FOLLOW_ruleref_in_atom2277, FOLLOW_ruleref_in_lexerAtom1701, FOLLOW_ruleReturns_in_rule831, FOLLOW_rules_in_grammarSpec126, FOLLOW_RULES_in_rules627, FOLLOW_SEMPRED_in_actionElement1743, FOLLOW_SEMPRED_in_actionElement1751, FOLLOW_SEMPRED_in_element1928, FOLLOW_SEMPRED_in_element1956, FOLLOW_SEMPRED_in_lexerElement1488, FOLLOW_SEMPRED_in_lexerElement1516, FOLLOW_SET_in_blockSet2302, FOLLOW_set_in_labeledElement2041, FOLLOW_set_in_labeledLexerElement1553, FOLLOW_setElement_in_blockSet2304, FOLLOW_STRING_LITERAL_in_elementOption2755, FOLLOW_STRING_LITERAL_in_range2551, FOLLOW_STRING_LITERAL_in_range2553, FOLLOW_STRING_LITERAL_in_setElement2328, FOLLOW_STRING_LITERAL_in_setElement2354, FOLLOW_STRING_LITERAL_in_setElement2412, FOLLOW_STRING_LITERAL_in_setElement2416, FOLLOW_STRING_LITERAL_in_terminal2583, FOLLOW_STRING_LITERAL_in_terminal2608, FOLLOW_subrule_in_element1907, FOLLOW_terminal_in_atom2209, FOLLOW_terminal_in_atom2259, FOLLOW_terminal_in_lexerAtom1625, FOLLOW_THROWS_in_throwsSpec1107, FOLLOW_throwsSpec_in_rule844, FOLLOW_TOKEN_REF_in_lexerRule699, FOLLOW_TOKEN_REF_in_setElement2342, FOLLOW_TOKEN_REF_in_setElement2379, FOLLOW_TOKEN_REF_in_terminal2622, FOLLOW_TOKEN_REF_in_terminal2635, FOLLOW_TOKENS_SPEC_in_tokensSpec480, FOLLOW_tokenSpec_in_tokensSpec482, FOLLOW_tokensSpec_in_prequelConstruct217, FOLLOW_WILDCARD_in_atom2230, FOLLOW_WILDCARD_in_atom2243, FOLLOW_WILDCARD_in_lexerAtom1660, FOLLOW_WILDCARD_in_lexerAtom1673, 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, UnicodeBOM, WILDCARD, WS, WSCHARS, WSNLCHARS| Constructor and Description |
|---|
Grammar.AltLabelVisitor(org.antlr.runtime.tree.TreeNodeStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
discoverOuterAlt(AltAST alt) |
Map<String,List<Tuple2<Integer,AltAST>>> |
getLabeledAlternatives() |
List<AltAST> |
getUnlabeledAlternatives() |
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, wildcardRefgetAncestor, getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, inContext, inContext, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStreamalreadyParsedRule, 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, traceOutCopyright © 1992–2014 ANTLR. All rights reserved.