Class BackReferenceTransition

All Implemented Interfaces:
Cloneable

public class BackReferenceTransition extends PhonexTransition
  • Field Details

    • matchLength

      public int matchLength
      Length of last group matched when follow(FSAState) returned true
  • Constructor Details

    • BackReferenceTransition

      public BackReferenceTransition(int groupIndex, PhoneMatcher... secondaryMatchers)
      Constructor
      Parameters:
      groupIndex -
      secondaryMatchers -
  • Method Details

    • follow

      public boolean follow(FSAState<IPAElement> currentState)
      Description copied from class: FSATransition
      Determines if the fsa will follow the transition given the current running state.
      Overrides:
      follow in class PhonexTransition
      Parameters:
      currentState - the current machine state
      Returns:
      true if this transition can be followed given the current state, false otherwise
    • getMatchLength

      public int getMatchLength()
      Description copied from class: FSATransition
      The number of items matched by this transition default is 1.
      Overrides:
      getMatchLength in class FSATransition<IPAElement>
      Returns:
      number of items to match on the tape
    • getImage

      public String getImage()
      Overrides:
      getImage in class PhonexTransition
    • clone

      public Object clone()
      Overrides:
      clone in class PhonexTransition