public final class NFAStateTransition extends Object implements AbstractTransition<NFAState,NFAStateTransition>, JsonConvertible
| Constructor and Description |
|---|
NFAStateTransition(NFAStateTransition original)
Creates a (shallow) copy of the
original transition. |
NFAStateTransition(short id,
NFAState source,
NFAState target,
CodePointSet codePointSet,
GroupBoundaries groupBoundaries) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CodePointSet |
getCodePointSet() |
GroupBoundaries |
getGroupBoundaries()
groups entered and exited by this transition.
|
int |
getId() |
NFAState |
getSource() |
NFAState |
getSource(boolean forward) |
NFAState |
getTarget() |
int |
hashCode() |
void |
setSource(NFAState source) |
void |
setTarget(NFAState target) |
JsonValue |
toJson() |
JsonValue |
toJson(boolean forward) |
clone, getClass, notify, notifyAll, toString, wait, wait, waitgetTargetpublic NFAStateTransition(short id,
NFAState source,
NFAState target,
CodePointSet codePointSet,
GroupBoundaries groupBoundaries)
public NFAStateTransition(NFAStateTransition original)
original transition. If this is called as part of a
deep copy of the NFA, the NFAStateTransition.getSource() and NFAStateTransition.getTarget() have to be updated to
point to states in the copied NFA.public int getId()
getId in interface AbstractTransition<NFAState,NFAStateTransition>public NFAState getSource()
getSource in interface AbstractTransition<NFAState,NFAStateTransition>public void setSource(NFAState source)
public NFAState getTarget()
getTarget in interface AbstractTransition<NFAState,NFAStateTransition>public void setTarget(NFAState target)
public NFAState getSource(boolean forward)
public CodePointSet getCodePointSet()
public GroupBoundaries getGroupBoundaries()
public JsonValue toJson()
toJson in interface JsonConvertiblepublic JsonValue toJson(boolean forward)