Class GrammarTreeVisitor

java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.tree.TreeParser
org.antlr.v4.parse.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 Details

    • tokenNames

      public static final String[] tokenNames
    • EOF

      public static final int EOF
      See Also:
    • ACTION

      public static final int ACTION
      See Also:
    • ACTION_CHAR_LITERAL

      public static final int ACTION_CHAR_LITERAL
      See Also:
    • ACTION_ESC

      public static final int ACTION_ESC
      See Also:
    • ACTION_STRING_LITERAL

      public static final int ACTION_STRING_LITERAL
      See Also:
    • ARG_ACTION

      public static final int ARG_ACTION
      See Also:
    • ARG_OR_CHARSET

      public static final int ARG_OR_CHARSET
      See Also:
    • ASSIGN

      public static final int ASSIGN
      See Also:
    • AT

      public static final int AT
      See Also:
    • CATCH

      public static final int CATCH
      See Also:
    • CHANNELS

      public static final int CHANNELS
      See Also:
    • COLON

      public static final int COLON
      See Also:
    • COLONCOLON

      public static final int COLONCOLON
      See Also:
    • COMMA

      public static final int COMMA
      See Also:
    • COMMENT

      public static final int COMMENT
      See Also:
    • DOC_COMMENT

      public static final int DOC_COMMENT
      See Also:
    • DOLLAR

      public static final int DOLLAR
      See Also:
    • DOT

      public static final int DOT
      See Also:
    • ERRCHAR

      public static final int ERRCHAR
      See Also:
    • ESC_SEQ

      public static final int ESC_SEQ
      See Also:
    • FINALLY

      public static final int FINALLY
      See Also:
    • FRAGMENT

      public static final int FRAGMENT
      See Also:
    • GRAMMAR

      public static final int GRAMMAR
      See Also:
    • GT

      public static final int GT
      See Also:
    • HEX_DIGIT

      public static final int HEX_DIGIT
      See Also:
    • ID

      public static final int ID
      See Also:
    • IMPORT

      public static final int IMPORT
      See Also:
    • INT

      public static final int INT
      See Also:
    • LEXER

      public static final int LEXER
      See Also:
    • LEXER_CHAR_SET

      public static final int LEXER_CHAR_SET
      See Also:
    • LOCALS

      public static final int LOCALS
      See Also:
    • LPAREN

      public static final int LPAREN
      See Also:
    • LT

      public static final int LT
      See Also:
    • MODE

      public static final int MODE
      See Also:
    • NESTED_ACTION

      public static final int NESTED_ACTION
      See Also:
    • NLCHARS

      public static final int NLCHARS
      See Also:
    • NOT

      public static final int NOT
      See Also:
    • NameChar

      public static final int NameChar
      See Also:
    • NameStartChar

      public static final int NameStartChar
      See Also:
    • OPTIONS

      public static final int OPTIONS
      See Also:
    • OR

      public static final int OR
      See Also:
    • PARSER

      public static final int PARSER
      See Also:
    • PLUS

      public static final int PLUS
      See Also:
    • PLUS_ASSIGN

      public static final int PLUS_ASSIGN
      See Also:
    • POUND

      public static final int POUND
      See Also:
    • PRIVATE

      public static final int PRIVATE
      See Also:
    • PROTECTED

      public static final int PROTECTED
      See Also:
    • PUBLIC

      public static final int PUBLIC
      See Also:
    • QUESTION

      public static final int QUESTION
      See Also:
    • RANGE

      public static final int RANGE
      See Also:
    • RARROW

      public static final int RARROW
      See Also:
    • RBRACE

      public static final int RBRACE
      See Also:
    • RETURNS

      public static final int RETURNS
      See Also:
    • RPAREN

      public static final int RPAREN
      See Also:
    • RULE_REF

      public static final int RULE_REF
      See Also:
    • SEMI

      public static final int SEMI
      See Also:
    • SEMPRED

      public static final int SEMPRED
      See Also:
    • SRC

      public static final int SRC
      See Also:
    • STAR

      public static final int STAR
      See Also:
    • STRING_LITERAL

      public static final int STRING_LITERAL
      See Also:
    • SYNPRED

      public static final int SYNPRED
      See Also:
    • THROWS

      public static final int THROWS
      See Also:
    • TOKENS_SPEC

      public static final int TOKENS_SPEC
      See Also:
    • TOKEN_REF

      public static final int TOKEN_REF
      See Also:
    • TREE_GRAMMAR

      public static final int TREE_GRAMMAR
      See Also:
    • UNICODE_ESC

      public static final int UNICODE_ESC
      See Also:
    • UNICODE_EXTENDED_ESC

      public static final int UNICODE_EXTENDED_ESC
      See Also:
    • UnicodeBOM

      public static final int UnicodeBOM
      See Also:
    • WS

      public static final int WS
      See Also:
    • WSCHARS

      public static final int WSCHARS
      See Also:
    • WSNLCHARS

      public static final int WSNLCHARS
      See Also:
    • ALT

      public static final int ALT
      See Also:
    • ALTLIST

      public static final int ALTLIST
      See Also:
    • ARG

      public static final int ARG
      See Also:
    • ARGLIST

      public static final int ARGLIST
      See Also:
    • BLOCK

      public static final int BLOCK
      See Also:
    • CHAR_RANGE

      public static final int CHAR_RANGE
      See Also:
    • CLOSURE

      public static final int CLOSURE
      See Also:
    • COMBINED

      public static final int COMBINED
      See Also:
    • ELEMENT_OPTIONS

      public static final int ELEMENT_OPTIONS
      See Also:
    • EPSILON

      public static final int EPSILON
      See Also:
    • INITACTION

      public static final int INITACTION
      See Also:
    • LABEL

      public static final int LABEL
      See Also:
    • LEXER_ACTION_CALL

      public static final int LEXER_ACTION_CALL
      See Also:
    • LEXER_ALT_ACTION

      public static final int LEXER_ALT_ACTION
      See Also:
    • LIST

      public static final int LIST
      See Also:
    • OPTIONAL

      public static final int OPTIONAL
      See Also:
    • POSITIVE_CLOSURE

      public static final int POSITIVE_CLOSURE
      See Also:
    • PREC_RULE

      public static final int PREC_RULE
      See Also:
    • RESULT

      public static final int RESULT
      See Also:
    • RET

      public static final int RET
      See Also:
    • RULE

      public static final int RULE
      See Also:
    • RULEACTIONS

      public static final int RULEACTIONS
      See Also:
    • RULEMODIFIERS

      public static final int RULEMODIFIERS
      See Also:
    • RULES

      public static final int RULES
      See Also:
    • SET

      public static final int SET
      See Also:
    • TEMPLATE

      public static final int TEMPLATE
      See Also:
    • WILDCARD

      public static final int WILDCARD
      See Also:
    • grammarName

      public String grammarName
    • currentRuleAST

      public GrammarAST currentRuleAST
    • currentModeName

      public String currentModeName
    • currentRuleName

      public String currentRuleName
    • currentOuterAltRoot

      public GrammarAST currentOuterAltRoot
    • currentOuterAltNumber

      public int currentOuterAltNumber
    • rewriteEBNFLevel

      public int rewriteEBNFLevel
    • dfa38

      protected GrammarTreeVisitor.DFA38 dfa38
    • 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 Details

    • 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 Details

    • getDelegates

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

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

      public String getGrammarFileName()
      Overrides:
      getGrammarFileName in class org.antlr.runtime.BaseRecognizer
    • getErrorManager

      public ErrorManager getErrorManager()
    • visitGrammar

      public void visitGrammar(GrammarAST t)
    • visit

      public void visit(GrammarAST t, String ruleName)
    • discoverGrammar

      public void discoverGrammar(GrammarRootAST root, GrammarAST ID)
    • finishPrequels

      public void finishPrequels(GrammarAST firstPrequel)
    • finishGrammar

      public void finishGrammar(GrammarRootAST root, GrammarAST ID)
    • grammarOption

      public void grammarOption(GrammarAST ID, GrammarAST valueAST)
    • ruleOption

      public void ruleOption(GrammarAST ID, GrammarAST valueAST)
    • blockOption

      public void blockOption(GrammarAST ID, GrammarAST valueAST)
    • defineToken

      public void defineToken(GrammarAST ID)
    • defineChannel

      public void defineChannel(GrammarAST ID)
    • globalNamedAction

      public void globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action)
    • importGrammar

      public void importGrammar(GrammarAST label, GrammarAST ID)
    • modeDef

      public void modeDef(GrammarAST m, GrammarAST ID)
    • discoverRules

      public void discoverRules(GrammarAST rules)
    • finishRules

      public void finishRules(GrammarAST rule)
    • discoverRule

      public void discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)
    • finishRule

      public void finishRule(RuleAST rule, GrammarAST ID, GrammarAST block)
    • discoverLexerRule

      public void discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST block)
    • finishLexerRule

      public void finishLexerRule(RuleAST rule, GrammarAST ID, GrammarAST block)
    • ruleCatch

      public void ruleCatch(GrammarAST arg, ActionAST action)
    • 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)
    • ruleRef

      public void ruleRef(GrammarAST ref, ActionAST arg)
    • tokenRef

      public void tokenRef(TerminalAST ref)
    • elementOption

      public void elementOption(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST)
    • stringRef

      public void stringRef(TerminalAST ref)
    • wildcardRef

      public void wildcardRef(GrammarAST ref)
    • actionInAlt

      public void actionInAlt(ActionAST action)
    • sempredInAlt

      public void sempredInAlt(PredAST pred)
    • label

      public void label(GrammarAST op, GrammarAST ID, GrammarAST element)
    • 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(String ruleName, int ruleIndex)
      Overrides:
      traceIn in class org.antlr.runtime.tree.TreeParser
    • traceOut

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

      public final GrammarTreeVisitor.grammarSpec_return grammarSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • prequelConstructs

      public final GrammarTreeVisitor.prequelConstructs_return prequelConstructs() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • prequelConstruct

      public final GrammarTreeVisitor.prequelConstruct_return prequelConstruct() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • optionsSpec

      public final GrammarTreeVisitor.optionsSpec_return optionsSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • option

      public final GrammarTreeVisitor.option_return option() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • optionValue

      public final GrammarTreeVisitor.optionValue_return optionValue() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • delegateGrammars

      public final GrammarTreeVisitor.delegateGrammars_return delegateGrammars() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • delegateGrammar

      public final GrammarTreeVisitor.delegateGrammar_return delegateGrammar() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • tokensSpec

      public final GrammarTreeVisitor.tokensSpec_return tokensSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • tokenSpec

      public final GrammarTreeVisitor.tokenSpec_return tokenSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • channelsSpec

      public final GrammarTreeVisitor.channelsSpec_return channelsSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • channelSpec

      public final GrammarTreeVisitor.channelSpec_return channelSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • action

      public final GrammarTreeVisitor.action_return action() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • 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
    • lexerRule

      public final GrammarTreeVisitor.lexerRule_return lexerRule() 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
    • exceptionGroup

      public final GrammarTreeVisitor.exceptionGroup_return exceptionGroup() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • exceptionHandler

      public final GrammarTreeVisitor.exceptionHandler_return exceptionHandler() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • finallyClause

      public final GrammarTreeVisitor.finallyClause_return finallyClause() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • locals

      public final GrammarTreeVisitor.locals_return locals() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • ruleReturns

      public final GrammarTreeVisitor.ruleReturns_return ruleReturns() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • throwsSpec

      public final GrammarTreeVisitor.throwsSpec_return throwsSpec() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • ruleAction

      public final GrammarTreeVisitor.ruleAction_return ruleAction() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • ruleModifier

      public final GrammarTreeVisitor.ruleModifier_return ruleModifier() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerRuleBlock

      public final GrammarTreeVisitor.lexerRuleBlock_return lexerRuleBlock() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • ruleBlock

      public final GrammarTreeVisitor.ruleBlock_return ruleBlock() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerOuterAlternative

      public final GrammarTreeVisitor.lexerOuterAlternative_return lexerOuterAlternative() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • outerAlternative

      public final GrammarTreeVisitor.outerAlternative_return outerAlternative() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerAlternative

      public final GrammarTreeVisitor.lexerAlternative_return lexerAlternative() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerElements

      public final GrammarTreeVisitor.lexerElements_return lexerElements() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerElement

      public final GrammarTreeVisitor.lexerElement_return lexerElement() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • labeledLexerElement

      public final GrammarTreeVisitor.labeledLexerElement_return labeledLexerElement() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerBlock

      public final GrammarTreeVisitor.lexerBlock_return lexerBlock() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerAtom

      public final GrammarTreeVisitor.lexerAtom_return lexerAtom() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • actionElement

      public final GrammarTreeVisitor.actionElement_return actionElement() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • alternative

      public final GrammarTreeVisitor.alternative_return alternative() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerCommand

      public final GrammarTreeVisitor.lexerCommand_return lexerCommand() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerCommandExpr

      public final GrammarTreeVisitor.lexerCommandExpr_return lexerCommandExpr() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • element

      public final GrammarTreeVisitor.element_return element() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • astOperand

      public final GrammarTreeVisitor.astOperand_return astOperand() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • labeledElement

      public final GrammarTreeVisitor.labeledElement_return labeledElement() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • subrule

      public final GrammarTreeVisitor.subrule_return subrule() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • lexerSubrule

      public final GrammarTreeVisitor.lexerSubrule_return lexerSubrule() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • blockSuffix

      public final GrammarTreeVisitor.blockSuffix_return blockSuffix() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • ebnfSuffix

      public final GrammarTreeVisitor.ebnfSuffix_return ebnfSuffix() 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
    • blockSet

      public final GrammarTreeVisitor.blockSet_return blockSet() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • setElement

      public final GrammarTreeVisitor.setElement_return setElement() 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
    • ruleref

      public final GrammarTreeVisitor.ruleref_return ruleref() 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
    • terminal

      public final GrammarTreeVisitor.terminal_return terminal() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • elementOptions

      public final GrammarTreeVisitor.elementOptions_return elementOptions() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • elementOption

      public final GrammarTreeVisitor.elementOption_return elementOption(GrammarASTWithOptions t) throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException