Package antlr

Class RuleBlock


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

    • ruleName

      protected String ruleName
    • argAction

      protected String argAction
    • throwsSpec

      protected String throwsSpec
    • returnAction

      protected String returnAction
    • endNode

      protected RuleEndElement endNode
    • testLiterals

      protected boolean testLiterals
    • labeledElements

      Vector labeledElements
    • lock

      protected boolean[] lock
    • cache

      protected Lookahead[] cache
    • exceptionSpecs

      Hashtable exceptionSpecs
    • defaultErrorHandler

      protected boolean defaultErrorHandler
    • ignoreRule

      protected String ignoreRule
  • Constructor Details

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