Class GrammarTreeVisitor

  • Direct Known Subclasses:
    BasicSemanticChecks, ElementFrequenciesVisitor, RuleCollector, SymbolCollector

    public class GrammarTreeVisitor
    extends org.antlr.runtime.tree.TreeParser
    The definitive ANTLR v3 tree grammar to walk/visit ANTLR v4 grammars. Parses trees created by ANTLRParser.g. Rather than have multiple tree grammars, one for each visit, I'm creating this generic visitor that knows about context. All of the boilerplate pattern recognition is done here. Then, subclasses can override the methods they care about. This prevents a lot of the same context tracking stuff like "set current alternative for current rule node" that is repeated in lots of tree filters.
    • Field Detail

      • tokenNames

        public static final java.lang.String[] tokenNames
      • grammarName

        public java.lang.String grammarName
      • currentRuleAST

        public GrammarAST currentRuleAST
      • currentModeName

        public java.lang.String currentModeName
      • currentRuleName

        public java.lang.String currentRuleName
      • currentOuterAltRoot

        public GrammarAST currentOuterAltRoot
      • currentOuterAltNumber

        public int currentOuterAltNumber
      • rewriteEBNFLevel

        public int rewriteEBNFLevel
      • DFA38_transitionS

        static final java.lang.String[] DFA38_transitionS
      • DFA38_eot

        static final short[] DFA38_eot
      • DFA38_eof

        static final short[] DFA38_eof
      • DFA38_min

        static final char[] DFA38_min
      • DFA38_max

        static final char[] DFA38_max
      • DFA38_accept

        static final short[] DFA38_accept
      • DFA38_special

        static final short[] DFA38_special
      • DFA38_transition

        static final short[][] DFA38_transition
      • FOLLOW_GRAMMAR_in_grammarSpec85

        public static final org.antlr.runtime.BitSet FOLLOW_GRAMMAR_in_grammarSpec85
      • FOLLOW_ID_in_grammarSpec87

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_grammarSpec87
      • FOLLOW_prequelConstructs_in_grammarSpec106

        public static final org.antlr.runtime.BitSet FOLLOW_prequelConstructs_in_grammarSpec106
      • FOLLOW_rules_in_grammarSpec123

        public static final org.antlr.runtime.BitSet FOLLOW_rules_in_grammarSpec123
      • FOLLOW_mode_in_grammarSpec125

        public static final org.antlr.runtime.BitSet FOLLOW_mode_in_grammarSpec125
      • FOLLOW_prequelConstruct_in_prequelConstructs167

        public static final org.antlr.runtime.BitSet FOLLOW_prequelConstruct_in_prequelConstructs167
      • FOLLOW_optionsSpec_in_prequelConstruct194

        public static final org.antlr.runtime.BitSet FOLLOW_optionsSpec_in_prequelConstruct194
      • FOLLOW_delegateGrammars_in_prequelConstruct204

        public static final org.antlr.runtime.BitSet FOLLOW_delegateGrammars_in_prequelConstruct204
      • FOLLOW_tokensSpec_in_prequelConstruct214

        public static final org.antlr.runtime.BitSet FOLLOW_tokensSpec_in_prequelConstruct214
      • FOLLOW_channelsSpec_in_prequelConstruct224

        public static final org.antlr.runtime.BitSet FOLLOW_channelsSpec_in_prequelConstruct224
      • FOLLOW_action_in_prequelConstruct234

        public static final org.antlr.runtime.BitSet FOLLOW_action_in_prequelConstruct234
      • FOLLOW_OPTIONS_in_optionsSpec259

        public static final org.antlr.runtime.BitSet FOLLOW_OPTIONS_in_optionsSpec259
      • FOLLOW_option_in_optionsSpec261

        public static final org.antlr.runtime.BitSet FOLLOW_option_in_optionsSpec261
      • FOLLOW_ASSIGN_in_option295

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGN_in_option295
      • FOLLOW_ID_in_option297

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_option297
      • FOLLOW_optionValue_in_option301

        public static final org.antlr.runtime.BitSet FOLLOW_optionValue_in_option301
      • FOLLOW_IMPORT_in_delegateGrammars389

        public static final org.antlr.runtime.BitSet FOLLOW_IMPORT_in_delegateGrammars389
      • FOLLOW_delegateGrammar_in_delegateGrammars391

        public static final org.antlr.runtime.BitSet FOLLOW_delegateGrammar_in_delegateGrammars391
      • FOLLOW_ASSIGN_in_delegateGrammar420

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGN_in_delegateGrammar420
      • FOLLOW_ID_in_delegateGrammar424

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_delegateGrammar424
      • FOLLOW_ID_in_delegateGrammar428

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_delegateGrammar428
      • FOLLOW_ID_in_delegateGrammar443

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_delegateGrammar443
      • FOLLOW_TOKENS_SPEC_in_tokensSpec477

        public static final org.antlr.runtime.BitSet FOLLOW_TOKENS_SPEC_in_tokensSpec477
      • FOLLOW_tokenSpec_in_tokensSpec479

        public static final org.antlr.runtime.BitSet FOLLOW_tokenSpec_in_tokensSpec479
      • FOLLOW_ID_in_tokenSpec502

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_tokenSpec502
      • FOLLOW_CHANNELS_in_channelsSpec532

        public static final org.antlr.runtime.BitSet FOLLOW_CHANNELS_in_channelsSpec532
      • FOLLOW_channelSpec_in_channelsSpec534

        public static final org.antlr.runtime.BitSet FOLLOW_channelSpec_in_channelsSpec534
      • FOLLOW_ID_in_channelSpec557

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_channelSpec557
      • FOLLOW_AT_in_action585

        public static final org.antlr.runtime.BitSet FOLLOW_AT_in_action585
      • FOLLOW_ID_in_action589

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_action589
      • FOLLOW_ID_in_action594

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_action594
      • FOLLOW_ACTION_in_action596

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_action596
      • FOLLOW_RULES_in_rules624

        public static final org.antlr.runtime.BitSet FOLLOW_RULES_in_rules624
      • FOLLOW_rule_in_rules629

        public static final org.antlr.runtime.BitSet FOLLOW_rule_in_rules629
      • FOLLOW_lexerRule_in_rules631

        public static final org.antlr.runtime.BitSet FOLLOW_lexerRule_in_rules631
      • FOLLOW_MODE_in_mode662

        public static final org.antlr.runtime.BitSet FOLLOW_MODE_in_mode662
      • FOLLOW_ID_in_mode664

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_mode664
      • FOLLOW_lexerRule_in_mode668

        public static final org.antlr.runtime.BitSet FOLLOW_lexerRule_in_mode668
      • FOLLOW_RULE_in_lexerRule694

        public static final org.antlr.runtime.BitSet FOLLOW_RULE_in_lexerRule694
      • FOLLOW_TOKEN_REF_in_lexerRule696

        public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_lexerRule696
      • FOLLOW_RULEMODIFIERS_in_lexerRule708

        public static final org.antlr.runtime.BitSet FOLLOW_RULEMODIFIERS_in_lexerRule708
      • FOLLOW_FRAGMENT_in_lexerRule712

        public static final org.antlr.runtime.BitSet FOLLOW_FRAGMENT_in_lexerRule712
      • FOLLOW_lexerRuleBlock_in_lexerRule737

        public static final org.antlr.runtime.BitSet FOLLOW_lexerRuleBlock_in_lexerRule737
      • FOLLOW_RULE_in_rule782

        public static final org.antlr.runtime.BitSet FOLLOW_RULE_in_rule782
      • FOLLOW_RULE_REF_in_rule784

        public static final org.antlr.runtime.BitSet FOLLOW_RULE_REF_in_rule784
      • FOLLOW_RULEMODIFIERS_in_rule793

        public static final org.antlr.runtime.BitSet FOLLOW_RULEMODIFIERS_in_rule793
      • FOLLOW_ruleModifier_in_rule798

        public static final org.antlr.runtime.BitSet FOLLOW_ruleModifier_in_rule798
      • FOLLOW_ARG_ACTION_in_rule809

        public static final org.antlr.runtime.BitSet FOLLOW_ARG_ACTION_in_rule809
      • FOLLOW_ruleReturns_in_rule822

        public static final org.antlr.runtime.BitSet FOLLOW_ruleReturns_in_rule822
      • FOLLOW_throwsSpec_in_rule835

        public static final org.antlr.runtime.BitSet FOLLOW_throwsSpec_in_rule835
      • FOLLOW_locals_in_rule848

        public static final org.antlr.runtime.BitSet FOLLOW_locals_in_rule848
      • FOLLOW_optionsSpec_in_rule863

        public static final org.antlr.runtime.BitSet FOLLOW_optionsSpec_in_rule863
      • FOLLOW_ruleAction_in_rule877

        public static final org.antlr.runtime.BitSet FOLLOW_ruleAction_in_rule877
      • FOLLOW_ruleBlock_in_rule908

        public static final org.antlr.runtime.BitSet FOLLOW_ruleBlock_in_rule908
      • FOLLOW_exceptionGroup_in_rule910

        public static final org.antlr.runtime.BitSet FOLLOW_exceptionGroup_in_rule910
      • FOLLOW_exceptionHandler_in_exceptionGroup957

        public static final org.antlr.runtime.BitSet FOLLOW_exceptionHandler_in_exceptionGroup957
      • FOLLOW_finallyClause_in_exceptionGroup960

        public static final org.antlr.runtime.BitSet FOLLOW_finallyClause_in_exceptionGroup960
      • FOLLOW_CATCH_in_exceptionHandler986

        public static final org.antlr.runtime.BitSet FOLLOW_CATCH_in_exceptionHandler986
      • FOLLOW_ARG_ACTION_in_exceptionHandler988

        public static final org.antlr.runtime.BitSet FOLLOW_ARG_ACTION_in_exceptionHandler988
      • FOLLOW_ACTION_in_exceptionHandler990

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_exceptionHandler990
      • FOLLOW_FINALLY_in_finallyClause1015

        public static final org.antlr.runtime.BitSet FOLLOW_FINALLY_in_finallyClause1015
      • FOLLOW_ACTION_in_finallyClause1017

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_finallyClause1017
      • FOLLOW_LOCALS_in_locals1045

        public static final org.antlr.runtime.BitSet FOLLOW_LOCALS_in_locals1045
      • FOLLOW_ARG_ACTION_in_locals1047

        public static final org.antlr.runtime.BitSet FOLLOW_ARG_ACTION_in_locals1047
      • FOLLOW_RETURNS_in_ruleReturns1070

        public static final org.antlr.runtime.BitSet FOLLOW_RETURNS_in_ruleReturns1070
      • FOLLOW_ARG_ACTION_in_ruleReturns1072

        public static final org.antlr.runtime.BitSet FOLLOW_ARG_ACTION_in_ruleReturns1072
      • FOLLOW_THROWS_in_throwsSpec1098

        public static final org.antlr.runtime.BitSet FOLLOW_THROWS_in_throwsSpec1098
      • FOLLOW_ID_in_throwsSpec1100

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_throwsSpec1100
      • FOLLOW_AT_in_ruleAction1127

        public static final org.antlr.runtime.BitSet FOLLOW_AT_in_ruleAction1127
      • FOLLOW_ID_in_ruleAction1129

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_ruleAction1129
      • FOLLOW_ACTION_in_ruleAction1131

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_ruleAction1131
      • FOLLOW_BLOCK_in_lexerRuleBlock1209

        public static final org.antlr.runtime.BitSet FOLLOW_BLOCK_in_lexerRuleBlock1209
      • FOLLOW_lexerOuterAlternative_in_lexerRuleBlock1228

        public static final org.antlr.runtime.BitSet FOLLOW_lexerOuterAlternative_in_lexerRuleBlock1228
      • FOLLOW_BLOCK_in_ruleBlock1273

        public static final org.antlr.runtime.BitSet FOLLOW_BLOCK_in_ruleBlock1273
      • FOLLOW_outerAlternative_in_ruleBlock1292

        public static final org.antlr.runtime.BitSet FOLLOW_outerAlternative_in_ruleBlock1292
      • FOLLOW_lexerAlternative_in_lexerOuterAlternative1332

        public static final org.antlr.runtime.BitSet FOLLOW_lexerAlternative_in_lexerOuterAlternative1332
      • FOLLOW_alternative_in_outerAlternative1354

        public static final org.antlr.runtime.BitSet FOLLOW_alternative_in_outerAlternative1354
      • FOLLOW_LEXER_ALT_ACTION_in_lexerAlternative1376

        public static final org.antlr.runtime.BitSet FOLLOW_LEXER_ALT_ACTION_in_lexerAlternative1376
      • FOLLOW_lexerElements_in_lexerAlternative1378

        public static final org.antlr.runtime.BitSet FOLLOW_lexerElements_in_lexerAlternative1378
      • FOLLOW_lexerCommand_in_lexerAlternative1380

        public static final org.antlr.runtime.BitSet FOLLOW_lexerCommand_in_lexerAlternative1380
      • FOLLOW_lexerElements_in_lexerAlternative1392

        public static final org.antlr.runtime.BitSet FOLLOW_lexerElements_in_lexerAlternative1392
      • FOLLOW_ALT_in_lexerElements1420

        public static final org.antlr.runtime.BitSet FOLLOW_ALT_in_lexerElements1420
      • FOLLOW_lexerElement_in_lexerElements1422

        public static final org.antlr.runtime.BitSet FOLLOW_lexerElement_in_lexerElements1422
      • FOLLOW_labeledLexerElement_in_lexerElement1448

        public static final org.antlr.runtime.BitSet FOLLOW_labeledLexerElement_in_lexerElement1448
      • FOLLOW_lexerAtom_in_lexerElement1453

        public static final org.antlr.runtime.BitSet FOLLOW_lexerAtom_in_lexerElement1453
      • FOLLOW_lexerSubrule_in_lexerElement1458

        public static final org.antlr.runtime.BitSet FOLLOW_lexerSubrule_in_lexerElement1458
      • FOLLOW_ACTION_in_lexerElement1465

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_lexerElement1465
      • FOLLOW_SEMPRED_in_lexerElement1479

        public static final org.antlr.runtime.BitSet FOLLOW_SEMPRED_in_lexerElement1479
      • FOLLOW_ACTION_in_lexerElement1494

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_lexerElement1494
      • FOLLOW_elementOptions_in_lexerElement1496

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_lexerElement1496
      • FOLLOW_SEMPRED_in_lexerElement1507

        public static final org.antlr.runtime.BitSet FOLLOW_SEMPRED_in_lexerElement1507
      • FOLLOW_elementOptions_in_lexerElement1509

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_lexerElement1509
      • FOLLOW_EPSILON_in_lexerElement1517

        public static final org.antlr.runtime.BitSet FOLLOW_EPSILON_in_lexerElement1517
      • FOLLOW_set_in_labeledLexerElement1544

        public static final org.antlr.runtime.BitSet FOLLOW_set_in_labeledLexerElement1544
      • FOLLOW_ID_in_labeledLexerElement1550

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_labeledLexerElement1550
      • FOLLOW_lexerAtom_in_labeledLexerElement1553

        public static final org.antlr.runtime.BitSet FOLLOW_lexerAtom_in_labeledLexerElement1553
      • FOLLOW_block_in_labeledLexerElement1555

        public static final org.antlr.runtime.BitSet FOLLOW_block_in_labeledLexerElement1555
      • FOLLOW_BLOCK_in_lexerBlock1580

        public static final org.antlr.runtime.BitSet FOLLOW_BLOCK_in_lexerBlock1580
      • FOLLOW_optionsSpec_in_lexerBlock1582

        public static final org.antlr.runtime.BitSet FOLLOW_optionsSpec_in_lexerBlock1582
      • FOLLOW_lexerAlternative_in_lexerBlock1585

        public static final org.antlr.runtime.BitSet FOLLOW_lexerAlternative_in_lexerBlock1585
      • FOLLOW_terminal_in_lexerAtom1616

        public static final org.antlr.runtime.BitSet FOLLOW_terminal_in_lexerAtom1616
      • FOLLOW_NOT_in_lexerAtom1627

        public static final org.antlr.runtime.BitSet FOLLOW_NOT_in_lexerAtom1627
      • FOLLOW_blockSet_in_lexerAtom1629

        public static final org.antlr.runtime.BitSet FOLLOW_blockSet_in_lexerAtom1629
      • FOLLOW_blockSet_in_lexerAtom1640

        public static final org.antlr.runtime.BitSet FOLLOW_blockSet_in_lexerAtom1640
      • FOLLOW_WILDCARD_in_lexerAtom1651

        public static final org.antlr.runtime.BitSet FOLLOW_WILDCARD_in_lexerAtom1651
      • FOLLOW_elementOptions_in_lexerAtom1653

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_lexerAtom1653
      • FOLLOW_WILDCARD_in_lexerAtom1664

        public static final org.antlr.runtime.BitSet FOLLOW_WILDCARD_in_lexerAtom1664
      • FOLLOW_LEXER_CHAR_SET_in_lexerAtom1672

        public static final org.antlr.runtime.BitSet FOLLOW_LEXER_CHAR_SET_in_lexerAtom1672
      • FOLLOW_range_in_lexerAtom1682

        public static final org.antlr.runtime.BitSet FOLLOW_range_in_lexerAtom1682
      • FOLLOW_ruleref_in_lexerAtom1692

        public static final org.antlr.runtime.BitSet FOLLOW_ruleref_in_lexerAtom1692
      • FOLLOW_ACTION_in_actionElement1716

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_actionElement1716
      • FOLLOW_ACTION_in_actionElement1724

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_actionElement1724
      • FOLLOW_elementOptions_in_actionElement1726

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_actionElement1726
      • FOLLOW_SEMPRED_in_actionElement1734

        public static final org.antlr.runtime.BitSet FOLLOW_SEMPRED_in_actionElement1734
      • FOLLOW_SEMPRED_in_actionElement1742

        public static final org.antlr.runtime.BitSet FOLLOW_SEMPRED_in_actionElement1742
      • FOLLOW_elementOptions_in_actionElement1744

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_actionElement1744
      • FOLLOW_ALT_in_alternative1767

        public static final org.antlr.runtime.BitSet FOLLOW_ALT_in_alternative1767
      • FOLLOW_elementOptions_in_alternative1769

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_alternative1769
      • FOLLOW_element_in_alternative1772

        public static final org.antlr.runtime.BitSet FOLLOW_element_in_alternative1772
      • FOLLOW_ALT_in_alternative1780

        public static final org.antlr.runtime.BitSet FOLLOW_ALT_in_alternative1780
      • FOLLOW_elementOptions_in_alternative1782

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_alternative1782
      • FOLLOW_EPSILON_in_alternative1785

        public static final org.antlr.runtime.BitSet FOLLOW_EPSILON_in_alternative1785
      • FOLLOW_LEXER_ACTION_CALL_in_lexerCommand1811

        public static final org.antlr.runtime.BitSet FOLLOW_LEXER_ACTION_CALL_in_lexerCommand1811
      • FOLLOW_ID_in_lexerCommand1813

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_lexerCommand1813
      • FOLLOW_lexerCommandExpr_in_lexerCommand1815

        public static final org.antlr.runtime.BitSet FOLLOW_lexerCommandExpr_in_lexerCommand1815
      • FOLLOW_ID_in_lexerCommand1831

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_lexerCommand1831
      • FOLLOW_labeledElement_in_element1888

        public static final org.antlr.runtime.BitSet FOLLOW_labeledElement_in_element1888
      • FOLLOW_atom_in_element1893

        public static final org.antlr.runtime.BitSet FOLLOW_atom_in_element1893
      • FOLLOW_subrule_in_element1898

        public static final org.antlr.runtime.BitSet FOLLOW_subrule_in_element1898
      • FOLLOW_ACTION_in_element1905

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_element1905
      • FOLLOW_SEMPRED_in_element1919

        public static final org.antlr.runtime.BitSet FOLLOW_SEMPRED_in_element1919
      • FOLLOW_ACTION_in_element1934

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_element1934
      • FOLLOW_elementOptions_in_element1936

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_element1936
      • FOLLOW_SEMPRED_in_element1947

        public static final org.antlr.runtime.BitSet FOLLOW_SEMPRED_in_element1947
      • FOLLOW_elementOptions_in_element1949

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_element1949
      • FOLLOW_range_in_element1957

        public static final org.antlr.runtime.BitSet FOLLOW_range_in_element1957
      • FOLLOW_NOT_in_element1963

        public static final org.antlr.runtime.BitSet FOLLOW_NOT_in_element1963
      • FOLLOW_blockSet_in_element1965

        public static final org.antlr.runtime.BitSet FOLLOW_blockSet_in_element1965
      • FOLLOW_NOT_in_element1972

        public static final org.antlr.runtime.BitSet FOLLOW_NOT_in_element1972
      • FOLLOW_block_in_element1974

        public static final org.antlr.runtime.BitSet FOLLOW_block_in_element1974
      • FOLLOW_atom_in_astOperand1996

        public static final org.antlr.runtime.BitSet FOLLOW_atom_in_astOperand1996
      • FOLLOW_NOT_in_astOperand2002

        public static final org.antlr.runtime.BitSet FOLLOW_NOT_in_astOperand2002
      • FOLLOW_blockSet_in_astOperand2004

        public static final org.antlr.runtime.BitSet FOLLOW_blockSet_in_astOperand2004
      • FOLLOW_NOT_in_astOperand2011

        public static final org.antlr.runtime.BitSet FOLLOW_NOT_in_astOperand2011
      • FOLLOW_block_in_astOperand2013

        public static final org.antlr.runtime.BitSet FOLLOW_block_in_astOperand2013
      • FOLLOW_set_in_labeledElement2036

        public static final org.antlr.runtime.BitSet FOLLOW_set_in_labeledElement2036
      • FOLLOW_ID_in_labeledElement2042

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_labeledElement2042
      • FOLLOW_element_in_labeledElement2044

        public static final org.antlr.runtime.BitSet FOLLOW_element_in_labeledElement2044
      • FOLLOW_blockSuffix_in_subrule2069

        public static final org.antlr.runtime.BitSet FOLLOW_blockSuffix_in_subrule2069
      • FOLLOW_block_in_subrule2071

        public static final org.antlr.runtime.BitSet FOLLOW_block_in_subrule2071
      • FOLLOW_block_in_subrule2078

        public static final org.antlr.runtime.BitSet FOLLOW_block_in_subrule2078
      • FOLLOW_blockSuffix_in_lexerSubrule2103

        public static final org.antlr.runtime.BitSet FOLLOW_blockSuffix_in_lexerSubrule2103
      • FOLLOW_lexerBlock_in_lexerSubrule2105

        public static final org.antlr.runtime.BitSet FOLLOW_lexerBlock_in_lexerSubrule2105
      • FOLLOW_lexerBlock_in_lexerSubrule2112

        public static final org.antlr.runtime.BitSet FOLLOW_lexerBlock_in_lexerSubrule2112
      • FOLLOW_ebnfSuffix_in_blockSuffix2139

        public static final org.antlr.runtime.BitSet FOLLOW_ebnfSuffix_in_blockSuffix2139
      • FOLLOW_DOT_in_atom2200

        public static final org.antlr.runtime.BitSet FOLLOW_DOT_in_atom2200
      • FOLLOW_ID_in_atom2202

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_atom2202
      • FOLLOW_terminal_in_atom2204

        public static final org.antlr.runtime.BitSet FOLLOW_terminal_in_atom2204
      • FOLLOW_DOT_in_atom2211

        public static final org.antlr.runtime.BitSet FOLLOW_DOT_in_atom2211
      • FOLLOW_ID_in_atom2213

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_atom2213
      • FOLLOW_ruleref_in_atom2215

        public static final org.antlr.runtime.BitSet FOLLOW_ruleref_in_atom2215
      • FOLLOW_WILDCARD_in_atom2225

        public static final org.antlr.runtime.BitSet FOLLOW_WILDCARD_in_atom2225
      • FOLLOW_elementOptions_in_atom2227

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_atom2227
      • FOLLOW_WILDCARD_in_atom2238

        public static final org.antlr.runtime.BitSet FOLLOW_WILDCARD_in_atom2238
      • FOLLOW_terminal_in_atom2254

        public static final org.antlr.runtime.BitSet FOLLOW_terminal_in_atom2254
      • FOLLOW_blockSet_in_atom2262

        public static final org.antlr.runtime.BitSet FOLLOW_blockSet_in_atom2262
      • FOLLOW_ruleref_in_atom2272

        public static final org.antlr.runtime.BitSet FOLLOW_ruleref_in_atom2272
      • FOLLOW_SET_in_blockSet2297

        public static final org.antlr.runtime.BitSet FOLLOW_SET_in_blockSet2297
      • FOLLOW_setElement_in_blockSet2299

        public static final org.antlr.runtime.BitSet FOLLOW_setElement_in_blockSet2299
      • FOLLOW_STRING_LITERAL_in_setElement2323

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_setElement2323
      • FOLLOW_elementOptions_in_setElement2325

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_setElement2325
      • FOLLOW_TOKEN_REF_in_setElement2337

        public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_setElement2337
      • FOLLOW_elementOptions_in_setElement2339

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_setElement2339
      • FOLLOW_STRING_LITERAL_in_setElement2349

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_setElement2349
      • FOLLOW_TOKEN_REF_in_setElement2374

        public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_setElement2374
      • FOLLOW_RANGE_in_setElement2403

        public static final org.antlr.runtime.BitSet FOLLOW_RANGE_in_setElement2403
      • FOLLOW_STRING_LITERAL_in_setElement2407

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_setElement2407
      • FOLLOW_STRING_LITERAL_in_setElement2411

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_setElement2411
      • FOLLOW_LEXER_CHAR_SET_in_setElement2434

        public static final org.antlr.runtime.BitSet FOLLOW_LEXER_CHAR_SET_in_setElement2434
      • FOLLOW_BLOCK_in_block2459

        public static final org.antlr.runtime.BitSet FOLLOW_BLOCK_in_block2459
      • FOLLOW_optionsSpec_in_block2461

        public static final org.antlr.runtime.BitSet FOLLOW_optionsSpec_in_block2461
      • FOLLOW_ruleAction_in_block2464

        public static final org.antlr.runtime.BitSet FOLLOW_ruleAction_in_block2464
      • FOLLOW_ACTION_in_block2467

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_block2467
      • FOLLOW_alternative_in_block2470

        public static final org.antlr.runtime.BitSet FOLLOW_alternative_in_block2470
      • FOLLOW_RULE_REF_in_ruleref2500

        public static final org.antlr.runtime.BitSet FOLLOW_RULE_REF_in_ruleref2500
      • FOLLOW_ARG_ACTION_in_ruleref2504

        public static final org.antlr.runtime.BitSet FOLLOW_ARG_ACTION_in_ruleref2504
      • FOLLOW_elementOptions_in_ruleref2507

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_ruleref2507
      • FOLLOW_RANGE_in_range2544

        public static final org.antlr.runtime.BitSet FOLLOW_RANGE_in_range2544
      • FOLLOW_STRING_LITERAL_in_range2546

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_range2546
      • FOLLOW_STRING_LITERAL_in_range2548

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_range2548
      • FOLLOW_STRING_LITERAL_in_terminal2578

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_terminal2578
      • FOLLOW_elementOptions_in_terminal2580

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_terminal2580
      • FOLLOW_STRING_LITERAL_in_terminal2603

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_terminal2603
      • FOLLOW_TOKEN_REF_in_terminal2617

        public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_terminal2617
      • FOLLOW_elementOptions_in_terminal2619

        public static final org.antlr.runtime.BitSet FOLLOW_elementOptions_in_terminal2619
      • FOLLOW_TOKEN_REF_in_terminal2630

        public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_terminal2630
      • FOLLOW_ELEMENT_OPTIONS_in_elementOptions2667

        public static final org.antlr.runtime.BitSet FOLLOW_ELEMENT_OPTIONS_in_elementOptions2667
      • FOLLOW_elementOption_in_elementOptions2669

        public static final org.antlr.runtime.BitSet FOLLOW_elementOption_in_elementOptions2669
      • FOLLOW_ID_in_elementOption2700

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_elementOption2700
      • FOLLOW_ASSIGN_in_elementOption2720

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGN_in_elementOption2720
      • FOLLOW_ID_in_elementOption2724

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_elementOption2724
      • FOLLOW_ID_in_elementOption2728

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_elementOption2728
      • FOLLOW_ASSIGN_in_elementOption2744

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGN_in_elementOption2744
      • FOLLOW_ID_in_elementOption2746

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_elementOption2746
      • FOLLOW_STRING_LITERAL_in_elementOption2750

        public static final org.antlr.runtime.BitSet FOLLOW_STRING_LITERAL_in_elementOption2750
      • FOLLOW_ASSIGN_in_elementOption2764

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGN_in_elementOption2764
      • FOLLOW_ID_in_elementOption2766

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_elementOption2766
      • FOLLOW_ACTION_in_elementOption2770

        public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_elementOption2770
      • FOLLOW_ASSIGN_in_elementOption2786

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGN_in_elementOption2786
      • FOLLOW_ID_in_elementOption2788

        public static final org.antlr.runtime.BitSet FOLLOW_ID_in_elementOption2788
      • FOLLOW_INT_in_elementOption2792

        public static final org.antlr.runtime.BitSet FOLLOW_INT_in_elementOption2792
    • Constructor Detail

      • GrammarTreeVisitor

        public GrammarTreeVisitor​(org.antlr.runtime.tree.TreeNodeStream input)
      • GrammarTreeVisitor

        public GrammarTreeVisitor​(org.antlr.runtime.tree.TreeNodeStream input,
                                  org.antlr.runtime.RecognizerSharedState state)
      • GrammarTreeVisitor

        public GrammarTreeVisitor()
    • Method Detail

      • getDelegates

        public org.antlr.runtime.tree.TreeParser[] getDelegates()
      • getTokenNames

        public java.lang.String[] getTokenNames()
        Overrides:
        getTokenNames in class org.antlr.runtime.BaseRecognizer
      • getGrammarFileName

        public java.lang.String getGrammarFileName()
        Overrides:
        getGrammarFileName in class org.antlr.runtime.BaseRecognizer
      • visitGrammar

        public void visitGrammar​(GrammarAST t)
      • visit

        public void visit​(GrammarAST t,
                          java.lang.String ruleName)
      • finishPrequels

        public void finishPrequels​(GrammarAST firstPrequel)
      • defineToken

        public void defineToken​(GrammarAST ID)
      • defineChannel

        public void defineChannel​(GrammarAST ID)
      • discoverRules

        public void discoverRules​(GrammarAST rules)
      • finishRules

        public void finishRules​(GrammarAST rule)
      • finallyAction

        public void finallyAction​(ActionAST action)
      • discoverOuterAlt

        public void discoverOuterAlt​(AltAST alt)
      • finishOuterAlt

        public void finishOuterAlt​(AltAST alt)
      • discoverAlt

        public void discoverAlt​(AltAST alt)
      • finishAlt

        public void finishAlt​(AltAST alt)
      • stringRef

        public void stringRef​(TerminalAST ref)
      • wildcardRef

        public void wildcardRef​(GrammarAST ref)
      • actionInAlt

        public void actionInAlt​(ActionAST action)
      • sempredInAlt

        public void sempredInAlt​(PredAST pred)
      • lexerCallCommand

        public void lexerCallCommand​(int outerAltNumber,
                                     GrammarAST ID,
                                     GrammarAST arg)
      • lexerCommand

        public void lexerCommand​(int outerAltNumber,
                                 GrammarAST ID)
      • enterGrammarSpec

        protected void enterGrammarSpec​(GrammarAST tree)
      • exitGrammarSpec

        protected void exitGrammarSpec​(GrammarAST tree)
      • enterPrequelConstructs

        protected void enterPrequelConstructs​(GrammarAST tree)
      • exitPrequelConstructs

        protected void exitPrequelConstructs​(GrammarAST tree)
      • enterPrequelConstruct

        protected void enterPrequelConstruct​(GrammarAST tree)
      • exitPrequelConstruct

        protected void exitPrequelConstruct​(GrammarAST tree)
      • enterOptionsSpec

        protected void enterOptionsSpec​(GrammarAST tree)
      • exitOptionsSpec

        protected void exitOptionsSpec​(GrammarAST tree)
      • enterOption

        protected void enterOption​(GrammarAST tree)
      • exitOption

        protected void exitOption​(GrammarAST tree)
      • enterOptionValue

        protected void enterOptionValue​(GrammarAST tree)
      • exitOptionValue

        protected void exitOptionValue​(GrammarAST tree)
      • enterDelegateGrammars

        protected void enterDelegateGrammars​(GrammarAST tree)
      • exitDelegateGrammars

        protected void exitDelegateGrammars​(GrammarAST tree)
      • enterDelegateGrammar

        protected void enterDelegateGrammar​(GrammarAST tree)
      • exitDelegateGrammar

        protected void exitDelegateGrammar​(GrammarAST tree)
      • enterTokensSpec

        protected void enterTokensSpec​(GrammarAST tree)
      • exitTokensSpec

        protected void exitTokensSpec​(GrammarAST tree)
      • enterTokenSpec

        protected void enterTokenSpec​(GrammarAST tree)
      • exitTokenSpec

        protected void exitTokenSpec​(GrammarAST tree)
      • enterChannelsSpec

        protected void enterChannelsSpec​(GrammarAST tree)
      • exitChannelsSpec

        protected void exitChannelsSpec​(GrammarAST tree)
      • enterChannelSpec

        protected void enterChannelSpec​(GrammarAST tree)
      • exitChannelSpec

        protected void exitChannelSpec​(GrammarAST tree)
      • enterAction

        protected void enterAction​(GrammarAST tree)
      • exitAction

        protected void exitAction​(GrammarAST tree)
      • enterRules

        protected void enterRules​(GrammarAST tree)
      • exitRules

        protected void exitRules​(GrammarAST tree)
      • enterMode

        protected void enterMode​(GrammarAST tree)
      • exitMode

        protected void exitMode​(GrammarAST tree)
      • enterLexerRule

        protected void enterLexerRule​(GrammarAST tree)
      • exitLexerRule

        protected void exitLexerRule​(GrammarAST tree)
      • enterRule

        protected void enterRule​(GrammarAST tree)
      • exitRule

        protected void exitRule​(GrammarAST tree)
      • enterExceptionGroup

        protected void enterExceptionGroup​(GrammarAST tree)
      • exitExceptionGroup

        protected void exitExceptionGroup​(GrammarAST tree)
      • enterExceptionHandler

        protected void enterExceptionHandler​(GrammarAST tree)
      • exitExceptionHandler

        protected void exitExceptionHandler​(GrammarAST tree)
      • enterFinallyClause

        protected void enterFinallyClause​(GrammarAST tree)
      • exitFinallyClause

        protected void exitFinallyClause​(GrammarAST tree)
      • enterLocals

        protected void enterLocals​(GrammarAST tree)
      • exitLocals

        protected void exitLocals​(GrammarAST tree)
      • enterRuleReturns

        protected void enterRuleReturns​(GrammarAST tree)
      • exitRuleReturns

        protected void exitRuleReturns​(GrammarAST tree)
      • enterThrowsSpec

        protected void enterThrowsSpec​(GrammarAST tree)
      • exitThrowsSpec

        protected void exitThrowsSpec​(GrammarAST tree)
      • enterRuleAction

        protected void enterRuleAction​(GrammarAST tree)
      • exitRuleAction

        protected void exitRuleAction​(GrammarAST tree)
      • enterRuleModifier

        protected void enterRuleModifier​(GrammarAST tree)
      • exitRuleModifier

        protected void exitRuleModifier​(GrammarAST tree)
      • enterLexerRuleBlock

        protected void enterLexerRuleBlock​(GrammarAST tree)
      • exitLexerRuleBlock

        protected void exitLexerRuleBlock​(GrammarAST tree)
      • enterRuleBlock

        protected void enterRuleBlock​(GrammarAST tree)
      • exitRuleBlock

        protected void exitRuleBlock​(GrammarAST tree)
      • enterLexerOuterAlternative

        protected void enterLexerOuterAlternative​(AltAST tree)
      • exitLexerOuterAlternative

        protected void exitLexerOuterAlternative​(AltAST tree)
      • enterOuterAlternative

        protected void enterOuterAlternative​(AltAST tree)
      • exitOuterAlternative

        protected void exitOuterAlternative​(AltAST tree)
      • enterLexerAlternative

        protected void enterLexerAlternative​(GrammarAST tree)
      • exitLexerAlternative

        protected void exitLexerAlternative​(GrammarAST tree)
      • enterLexerElements

        protected void enterLexerElements​(GrammarAST tree)
      • exitLexerElements

        protected void exitLexerElements​(GrammarAST tree)
      • enterLexerElement

        protected void enterLexerElement​(GrammarAST tree)
      • exitLexerElement

        protected void exitLexerElement​(GrammarAST tree)
      • enterLabeledLexerElement

        protected void enterLabeledLexerElement​(GrammarAST tree)
      • exitLabeledLexerElement

        protected void exitLabeledLexerElement​(GrammarAST tree)
      • enterLexerBlock

        protected void enterLexerBlock​(GrammarAST tree)
      • exitLexerBlock

        protected void exitLexerBlock​(GrammarAST tree)
      • enterLexerAtom

        protected void enterLexerAtom​(GrammarAST tree)
      • exitLexerAtom

        protected void exitLexerAtom​(GrammarAST tree)
      • enterActionElement

        protected void enterActionElement​(GrammarAST tree)
      • exitActionElement

        protected void exitActionElement​(GrammarAST tree)
      • enterAlternative

        protected void enterAlternative​(AltAST tree)
      • exitAlternative

        protected void exitAlternative​(AltAST tree)
      • enterLexerCommand

        protected void enterLexerCommand​(GrammarAST tree)
      • exitLexerCommand

        protected void exitLexerCommand​(GrammarAST tree)
      • enterLexerCommandExpr

        protected void enterLexerCommandExpr​(GrammarAST tree)
      • exitLexerCommandExpr

        protected void exitLexerCommandExpr​(GrammarAST tree)
      • enterElement

        protected void enterElement​(GrammarAST tree)
      • exitElement

        protected void exitElement​(GrammarAST tree)
      • enterAstOperand

        protected void enterAstOperand​(GrammarAST tree)
      • exitAstOperand

        protected void exitAstOperand​(GrammarAST tree)
      • enterLabeledElement

        protected void enterLabeledElement​(GrammarAST tree)
      • exitLabeledElement

        protected void exitLabeledElement​(GrammarAST tree)
      • enterSubrule

        protected void enterSubrule​(GrammarAST tree)
      • exitSubrule

        protected void exitSubrule​(GrammarAST tree)
      • enterLexerSubrule

        protected void enterLexerSubrule​(GrammarAST tree)
      • exitLexerSubrule

        protected void exitLexerSubrule​(GrammarAST tree)
      • enterBlockSuffix

        protected void enterBlockSuffix​(GrammarAST tree)
      • exitBlockSuffix

        protected void exitBlockSuffix​(GrammarAST tree)
      • enterEbnfSuffix

        protected void enterEbnfSuffix​(GrammarAST tree)
      • exitEbnfSuffix

        protected void exitEbnfSuffix​(GrammarAST tree)
      • enterAtom

        protected void enterAtom​(GrammarAST tree)
      • exitAtom

        protected void exitAtom​(GrammarAST tree)
      • enterBlockSet

        protected void enterBlockSet​(GrammarAST tree)
      • exitBlockSet

        protected void exitBlockSet​(GrammarAST tree)
      • enterSetElement

        protected void enterSetElement​(GrammarAST tree)
      • exitSetElement

        protected void exitSetElement​(GrammarAST tree)
      • enterBlock

        protected void enterBlock​(GrammarAST tree)
      • exitBlock

        protected void exitBlock​(GrammarAST tree)
      • enterRuleref

        protected void enterRuleref​(GrammarAST tree)
      • exitRuleref

        protected void exitRuleref​(GrammarAST tree)
      • enterRange

        protected void enterRange​(GrammarAST tree)
      • exitRange

        protected void exitRange​(GrammarAST tree)
      • enterTerminal

        protected void enterTerminal​(GrammarAST tree)
      • exitTerminal

        protected void exitTerminal​(GrammarAST tree)
      • enterElementOptions

        protected void enterElementOptions​(GrammarAST tree)
      • exitElementOptions

        protected void exitElementOptions​(GrammarAST tree)
      • enterElementOption

        protected void enterElementOption​(GrammarAST tree)
      • exitElementOption

        protected void exitElementOption​(GrammarAST tree)
      • traceIn

        public void traceIn​(java.lang.String ruleName,
                            int ruleIndex)
        Overrides:
        traceIn in class org.antlr.runtime.tree.TreeParser
      • traceOut

        public void traceOut​(java.lang.String ruleName,
                             int ruleIndex)
        Overrides:
        traceOut in class org.antlr.runtime.tree.TreeParser
      • rules

        public final GrammarTreeVisitor.rules_return rules()
                                                    throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • mode

        public final GrammarTreeVisitor.mode_return mode()
                                                  throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • rule

        public final GrammarTreeVisitor.rule_return rule()
                                                  throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • atom

        public final GrammarTreeVisitor.atom_return atom()
                                                  throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • block

        public final GrammarTreeVisitor.block_return block()
                                                    throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • range

        public final GrammarTreeVisitor.range_return range()
                                                    throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException