public class DFAStateNode extends DFAAbstractStateNode
| Modifier and Type | Class and Description |
|---|---|
static class |
DFAStateNode.IndexOfAnyByteCall
Optimized search for a set of up to 4
byte values. |
static class |
DFAStateNode.IndexOfAnyCall |
static class |
DFAStateNode.IndexOfAnyCharCall
Optimized search for a set of up to 4
char values. |
static class |
DFAStateNode.IndexOfAnyIntCall
Optimized search for a set of up to 4
int values. |
static class |
DFAStateNode.IndexOfCall
This call is used when all except a very small set of code points will loop back to the
current DFA state.
|
static class |
DFAStateNode.IndexOfStringCall
Optimized search for a substring.
|
| Modifier and Type | Field and Description |
|---|---|
protected DFAStateNode.IndexOfCall |
indexOfCall |
successors| Constructor and Description |
|---|
DFAStateNode(short id,
byte flags,
short loopTransitionIndex,
DFAStateNode.IndexOfCall indexOfCall,
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. |
Matchers |
getMatchers() |
SequentialMatchers |
getSequentialMatchers() |
boolean |
hasBackwardPrefixState() |
boolean |
hasLoopToSelf() |
boolean |
isAnchoredFinalState() |
boolean |
isFinalState() |
JsonValue |
toJson() |
String |
toString() |
boolean |
utf16MustDecode() |
getId, getSuccessorsprotected final DFAStateNode.IndexOfCall indexOfCall
public DFAStateNode(short id,
byte flags,
short loopTransitionIndex,
DFAStateNode.IndexOfCall indexOfCall,
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 JsonValue toJson()