Class NamedReferenceTransition
java.lang.Object
ca.phon.fsa.FSATransition<IPAElement>
ca.phon.phonex.PhonexTransition
ca.phon.phonex.NamedReferenceTransition
- All Implemented Interfaces:
Cloneable
Transition for named references in phonex expressions. (e.g., \{1}, \{C}).
The group reference may be negated (e.g., \{^1}, \{^C}).
When used in aligned expressions, the group reference may be a group which is not
currently matched. In this case, the fsa will initially follow the transition and
defer the match until the information is available. This is possible because aligned
expressions will never increase the tape position and execute on a different tape consisting
of the aligned elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
follow
(FSAState<IPAElement> currentState) Determines if the fsa will follow the transition given the current running state.int
boolean
toString()
Methods inherited from class ca.phon.phonex.PhonexTransition
addSecondaryMatcher, clone, getImage, getMatcher, getSecondaryMatchers, removeSecondaryMatcher
Methods inherited from class ca.phon.fsa.FSATransition
copyTransitionInfo, getFirstState, getInitGroups, getMatcherGroups, getMatchLength, getOffsetType, getToState, getType, setFirstState, setImage, setOffsetType, setToState, setType, setupTransition
-
Constructor Details
-
NamedReferenceTransition
-
-
Method Details
-
getGroupIndex
public int getGroupIndex() -
getGroupName
-
isNegated
public boolean isNegated() -
follow
Description copied from class:FSATransition
Determines if the fsa will follow the transition given the current running state.- Overrides:
follow
in classPhonexTransition
- Parameters:
currentState
- the current machine state- Returns:
true
if this transition can be followed given the current state,false
otherwise
-
toString
-