Class ActionTransition

java.lang.Object
org.antlr.v4.runtime.atn.Transition
org.antlr.v4.runtime.atn.ActionTransition

public final class ActionTransition extends Transition
  • Field Details

    • ruleIndex

      public final int ruleIndex
    • actionIndex

      public final int actionIndex
    • isCtxDependent

      public final boolean isCtxDependent
  • Constructor Details

    • ActionTransition

      public ActionTransition(ATNState target, int ruleIndex)
    • ActionTransition

      public ActionTransition(ATNState target, int ruleIndex, int actionIndex, boolean isCtxDependent)
  • Method Details

    • getSerializationType

      public int getSerializationType()
      Specified by:
      getSerializationType in class Transition
    • isEpsilon

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

      The default implementation returns false.

      Overrides:
      isEpsilon in class Transition
      Returns:
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object