public class DFAStateNode extends DFAAbstractStateNode
successors| Constructor and Description |
|---|
DFAStateNode(short id,
byte flags,
short loopTransitionIndex,
short indexOfNodeId,
byte indexOfIsFast,
short[] successors,
Matchers matchers,
DFASimpleCG simpleCG) |
| Modifier and Type | Method and Description |
|---|---|
static byte |
buildFlags(boolean finalState,
boolean anchoredFinalState,
boolean hasBackwardPrefixState,
boolean utf16MustDecode) |
DFAStateNode |
createNodeSplitCopy(short copyID)
Creates a copy of this state node, where all attributes are copied shallowly, except for the
DFAAbstractStateNode.successors array, which is deep-copied, and the node ID, which is replaced by the
parameter copyID. |
int |
getIndexOfNodeId() |
Matchers |
getMatchers() |
SequentialMatchers |
getSequentialMatchers() |
boolean |
hasBackwardPrefixState() |
boolean |
hasIndexOfNodeId() |
boolean |
hasLoopToSelf() |
boolean |
isAnchoredFinalState() |
boolean |
isFinalState() |
JsonValue |
toJson() |
String |
toString() |
boolean |
utf16MustDecode() |
getId, getSuccessorspublic DFAStateNode(short id,
byte flags,
short loopTransitionIndex,
short indexOfNodeId,
byte indexOfIsFast,
short[] successors,
Matchers matchers,
DFASimpleCG simpleCG)
public static byte buildFlags(boolean finalState,
boolean anchoredFinalState,
boolean hasBackwardPrefixState,
boolean utf16MustDecode)
public DFAStateNode createNodeSplitCopy(short copyID)
DFAAbstractStateNodeDFAAbstractStateNode.successors array, which is deep-copied, and the node ID, which is replaced by the
parameter copyID. Used by DFANodeSplit.createNodeSplitCopy in class DFAAbstractStateNodecopyID - new ID for the copy.public final Matchers getMatchers()
public final SequentialMatchers getSequentialMatchers()
public boolean isFinalState()
public boolean isAnchoredFinalState()
public boolean hasBackwardPrefixState()
public boolean utf16MustDecode()
public boolean hasLoopToSelf()
public boolean hasIndexOfNodeId()
public int getIndexOfNodeId()
public JsonValue toJson()