public class DFAInitialStateNode extends DFAAbstractStateNode
successors| Constructor and Description |
|---|
DFAInitialStateNode(short[] successors,
boolean searching,
boolean genericCG) |
| Modifier and Type | Method and Description |
|---|---|
DFAAbstractStateNode |
createNodeSplitCopy(short copyID)
Creates a node split copy of this initial state as described in
DFAAbstractStateNode,
but ignores copyID, since having two initial states in a DFA is not supported. |
void |
executeFindSuccessor(TRegexDFAExecutorLocals locals,
TRegexDFAExecutorNode executor,
boolean compactString)
Calculates this state's successor and returns its ID (
DFAAbstractStateNode.getId()) via
TRegexDFAExecutorLocals.setSuccessorIndex(int). |
int |
getPrefixLength() |
boolean |
hasUnAnchoredEntry() |
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 DFAInitialStateNode(short[] successors,
boolean searching,
boolean genericCG)
public int getPrefixLength()
public boolean hasUnAnchoredEntry()
public DFAAbstractStateNode createNodeSplitCopy(short copyID)
DFAAbstractStateNode,
but ignores copyID, since having two initial states in a DFA is not supported. Therefore,
this method should be used for replacing the original initial state with the copy.createNodeSplitCopy in class DFAAbstractStateNodecopyID - new ID for the copy.DFAAbstractStateNode,
ignoring copyID.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()