Class ATNState

  • Direct Known Subclasses:
    BasicState, BlockEndState, DecisionState, LoopEndState, RuleStartState, RuleStopState, StarLoopbackState

    public abstract class ATNState
    extends Object
    The following images show the relation of states and transitions for various grammar constructs.
    • Solid edges marked with an ε indicate a required EpsilonTransition.
    • Dashed edges indicate locations where any transition derived from Transition might appear.
    • Dashed nodes are place holders for either a sequence of linked BasicState states or the inclusion of a block representing a nested construct in one of the forms below.
    • Nodes showing multiple outgoing alternatives with a ... support any number of alternatives (one or more). Nodes without the ... only support the exact number of alternatives shown in the diagram.

    Basic Blocks

    Rule

    Block of 1 or more alternatives

    Greedy Loops

    Greedy Closure: (...)*

    Greedy Positive Closure: (...)+

    Greedy Optional: (...)?

    Non-Greedy Loops

    Non-Greedy Closure: (...)*?

    Non-Greedy Positive Closure: (...)+?

    Non-Greedy Optional: (...)??

    • Constructor Detail

      • ATNState

        public ATNState()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isNonGreedyExitState

        public boolean isNonGreedyExitState()
      • getTransitions

        public Transition[] getTransitions()
      • getNumberOfTransitions

        public int getNumberOfTransitions()
      • addTransition

        public void addTransition​(Transition e)
      • addTransition

        public void addTransition​(int index,
                                  Transition e)
      • transition

        public Transition transition​(int i)
      • setTransition

        public void setTransition​(int i,
                                  Transition e)
      • removeTransition

        public Transition removeTransition​(int index)
      • getStateType

        public abstract int getStateType()
      • onlyHasEpsilonTransitions

        public final boolean onlyHasEpsilonTransitions()
      • setRuleIndex

        public void setRuleIndex​(int ruleIndex)