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. |
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, 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 JsonValue toJson()