Package antlr

Class RuleBlock


  • public class RuleBlock
    extends AlternativeBlock
    A list of alternatives and info contained in the rule definition.
    • Field Detail

      • ruleName

        protected String ruleName
      • argAction

        protected String argAction
      • throwsSpec

        protected String throwsSpec
      • returnAction

        protected String returnAction
      • testLiterals

        protected boolean testLiterals
      • labeledElements

        Vector labeledElements
      • lock

        protected boolean[] lock
      • defaultErrorHandler

        protected boolean defaultErrorHandler
      • ignoreRule

        protected String ignoreRule
    • Constructor Detail

      • RuleBlock

        public RuleBlock​(Grammar g,
                         String r)
        Construct a named rule.
      • RuleBlock

        public RuleBlock​(Grammar g,
                         String r,
                         int line,
                         boolean doAutoGen_)
        Construct a named rule with line number information