Class CGTrackingDFAStateNode
java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
com.oracle.truffle.regex.tregex.nodes.dfa.DFAStateNode
com.oracle.truffle.regex.tregex.nodes.dfa.CGTrackingDFAStateNode
- All Implemented Interfaces:
JsonConvertible
-
Field Summary
Fields inherited from class com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
successors -
Constructor Summary
ConstructorsConstructorDescriptionCGTrackingDFAStateNode(short id, byte flags, short loopTransitionIndex, short indexOfNodeId, byte indexOfIsFast, short[] successors, Matchers matchers, short[] lastTransitionIndex, DFACaptureGroupLazyTransition[] lazyTransitions, DFACaptureGroupLazyTransition preAnchoredFinalStateTransition, DFACaptureGroupLazyTransition preUnAnchoredFinalStateTransition, DFACaptureGroupPartialTransition anchoredFinalStateTransition, DFACaptureGroupPartialTransition unAnchoredFinalStateTransition, DFACaptureGroupPartialTransition cgLoopToSelf, boolean cgLoopToSelfHasDependency) -
Method Summary
Modifier and TypeMethodDescriptioncreateNodeSplitCopy(short copyID) Creates a copy of this state node, where all attributes are copied shallowly, except for theDFAAbstractStateNode.successorsarray, which is deep-copied, and the node ID, which is replaced by the parameter copyID.intshort[]Methods inherited from class com.oracle.truffle.regex.tregex.nodes.dfa.DFAStateNode
buildFlags, getIndexOfNodeId, getMatchers, getSequentialMatchers, hasBackwardPrefixState, hasIndexOfNodeId, hasLoopToSelf, isAnchoredFinalState, isFinalState, toJson, toString, utf16MustDecodeMethods inherited from class com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
getId, getSuccessors
-
Constructor Details
-
CGTrackingDFAStateNode
public CGTrackingDFAStateNode(short id, byte flags, short loopTransitionIndex, short indexOfNodeId, byte indexOfIsFast, short[] successors, Matchers matchers, short[] lastTransitionIndex, DFACaptureGroupLazyTransition[] lazyTransitions, DFACaptureGroupLazyTransition preAnchoredFinalStateTransition, DFACaptureGroupLazyTransition preUnAnchoredFinalStateTransition, DFACaptureGroupPartialTransition anchoredFinalStateTransition, DFACaptureGroupPartialTransition unAnchoredFinalStateTransition, DFACaptureGroupPartialTransition cgLoopToSelf, boolean cgLoopToSelfHasDependency)
-
-
Method Details
-
getLastTransitionIndex
public short[] getLastTransitionIndex() -
createNodeSplitCopy
Description copied from class:DFAAbstractStateNodeCreates a copy of this state node, where all attributes are copied shallowly, except for theDFAAbstractStateNode.successorsarray, which is deep-copied, and the node ID, which is replaced by the parameter copyID. Used byDFANodeSplit.- Overrides:
createNodeSplitCopyin classDFAStateNode- Parameters:
copyID- new ID for the copy.- Returns:
- an "almost shallow" copy of this node.
-
getCGTrackingCost
public int getCGTrackingCost()
-