public class DFAStateNode extends DFAAbstractStateNode
| Modifier and Type | Class and Description |
|---|---|
static class |
DFAStateNode.LoopOptimizationNode
This node is used when all except a very small set of code points will loop back to the
current DFA state.
|
static class |
DFAStateNode.LoopOptIndexOfAnyByteNode
Optimized search for a set of up to 4
byte values. |
static class |
DFAStateNode.LoopOptIndexOfAnyCharNode
Optimized search for a set of up to 4
char values. |
static class |
DFAStateNode.LoopOptIndexOfAnyNode |
static class |
DFAStateNode.LoopOptIndexOfStringNode
Optimized search for a substring.
|
successors| Constructor and Description |
|---|
DFAStateNode(short id,
byte flags,
short loopTransitionIndex,
DFAStateNode.LoopOptimizationNode loopOptimizationNode,
short[] successors,
Matchers matchers,
DFASimpleCG simpleCG,
AllTransitionsInOneTreeMatcher allTransitionsInOneTreeMatcher) |
| 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() |
boolean |
hasBackwardPrefixState() |
boolean |
hasLoopToSelf() |
boolean |
isAnchoredFinalState() |
boolean |
isFinalState() |
JsonValue |
toJson() |
String |
toString() |
boolean |
utf16MustDecode() |
getId, getSuccessorsaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic DFAStateNode(short id,
byte flags,
short loopTransitionIndex,
DFAStateNode.LoopOptimizationNode loopOptimizationNode,
short[] successors,
Matchers matchers,
DFASimpleCG simpleCG,
AllTransitionsInOneTreeMatcher allTransitionsInOneTreeMatcher)
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 boolean isFinalState()
public boolean isAnchoredFinalState()
public boolean hasBackwardPrefixState()
public boolean utf16MustDecode()
public boolean hasLoopToSelf()
public String toString()
toString in class com.oracle.truffle.api.nodes.Nodepublic JsonValue toJson()