public final class DFAFindInnerLiteralStateNode extends DFAAbstractStateNode
successors| Constructor and Description |
|---|
DFAFindInnerLiteralStateNode(short id,
short[] successors,
String literal,
String mask,
TRegexDFAExecutorNode prefixMatcher) |
| Modifier and Type | Method and Description |
|---|---|
DFAAbstractStateNode |
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. |
void |
executeFindSuccessor(TRegexDFAExecutorLocals locals,
TRegexDFAExecutorNode executor,
boolean compactString)
Calculates this state's successor and returns its ID (
DFAAbstractStateNode.getId()) via
TRegexDFAExecutorLocals.setSuccessorIndex(int). |
JsonValue |
toJson() |
getId, getSuccessorsaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic DFAFindInnerLiteralStateNode(short id,
short[] successors,
String literal,
String mask,
TRegexDFAExecutorNode prefixMatcher)
public DFAAbstractStateNode 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 void executeFindSuccessor(TRegexDFAExecutorLocals locals, TRegexDFAExecutorNode executor, boolean compactString)
DFAAbstractStateNodeDFAAbstractStateNode.getId()) via
TRegexDFAExecutorLocals.setSuccessorIndex(int). This return value is called
"successor index" and may either be an index of the successors array (between 0 and
DFAAbstractStateNode.getSuccessors().length) or DFAAbstractStateNode.FS_RESULT_NO_SUCCESSOR.executeFindSuccessor in class DFAAbstractStateNodelocals - a virtual frame as described by TRegexDFAExecutorProperties.executor - this node's parent TRegexDFAExecutorNode.public JsonValue toJson()