类 Transition

  • 所有已实现的接口:
    java.lang.Comparable<Transition>
    直接已知子类:
    RuleClosureTransition

    public class Transition
    extends java.lang.Object
    implements java.lang.Comparable<Transition>
    A generic transition between any two state machine states. It defines some special labels that indicate things like epsilon transitions and that the label is actually a set of labels or a semantic predicate. This is a one way link. It emanates from a state (usually via a list of transitions) and has a label/target pair. I have abstracted the notion of a Label to handle the various kinds of things it can be.
    • 字段详细资料

      • label

        public Label label
        What label must be consumed to transition to target
      • target

        public State target
        The target of this transition
    • 构造器详细资料

      • Transition

        public Transition​(Label label,
                          State target)
      • Transition

        public Transition​(int label,
                          State target)
    • 方法详细资料

      • isEpsilon

        public boolean isEpsilon()
      • isAction

        public boolean isAction()
      • isSemanticPredicate

        public boolean isSemanticPredicate()
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        覆盖:
        equals 在类中 java.lang.Object
      • compareTo

        public int compareTo​(Transition other)
        指定者:
        compareTo 在接口中 java.lang.Comparable<Transition>
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object