Class DFAAbstractStateNode
java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
- All Implemented Interfaces:
JsonConvertible
- Direct Known Subclasses:
DFAFindInnerLiteralStateNode,DFAInitialStateNode,DFAStateNode
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract DFAAbstractStateNodecreateNodeSplitCopy(short copyID) Creates a copy of this state node, where all attributes are copied shallowly, except for thesuccessorsarray, which is deep-copied, and the node ID, which is replaced by the parameter copyID.final shortgetId()final short[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.truffle.regex.tregex.util.json.JsonConvertible
toJson
-
Field Details
-
successors
protected final short[] successors
-
-
Method Details
-
createNodeSplitCopy
Creates a copy of this state node, where all attributes are copied shallowly, except for thesuccessorsarray, which is deep-copied, and the node ID, which is replaced by the parameter copyID. Used byDFANodeSplit.- Parameters:
copyID- new ID for the copy.- Returns:
- an "almost shallow" copy of this node.
-
getId
public final short getId() -
getSuccessors
public final short[] getSuccessors()
-