Class RuleTransition

  • public final class RuleTransition
    extends Transition
    • Field Detail

      • ruleIndex

        public final int ruleIndex
        Ptr to the rule definition object for this rule ref
      • precedence

        public final int precedence
      • followState

        public ATNState followState
        What node to begin computations following ref to rule
    • Method Detail

      • isEpsilon

        public boolean isEpsilon()
        Description copied from class: Transition
        Determines if the transition is an "epsilon" transition.

        The default implementation returns false.

        isEpsilon in class Transition
        true if traversing this transition in the ATN does not consume an input symbol; otherwise, false if traversing this transition consumes (matches) an input symbol.
      • matches

        public boolean matches​(int symbol,
                               int minVocabSymbol,
                               int maxVocabSymbol)
        Specified by:
        matches in class Transition