Class DFAStateNode
java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
com.oracle.truffle.regex.tregex.nodes.dfa.DFAStateNode
- All Implemented Interfaces:
JsonConvertible
- Direct Known Subclasses:
BackwardDFAStateNode,CGTrackingDFAStateNode
-
Field Summary
Fields inherited from class com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
successors -
Constructor Summary
ConstructorsConstructorDescriptionDFAStateNode(short id, byte flags, short loopTransitionIndex, short indexOfNodeId, byte indexOfIsFast, short[] successors, Matchers matchers, DFASimpleCG simpleCG) -
Method Summary
Modifier and TypeMethodDescriptionstatic bytebuildFlags(boolean finalState, boolean anchoredFinalState, boolean hasBackwardPrefixState, boolean utf16MustDecode) createNodeSplitCopy(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.intfinal Matchersfinal SequentialMatchersbooleanbooleanbooleanbooleanbooleantoJson()toString()booleanMethods inherited from class com.oracle.truffle.regex.tregex.nodes.dfa.DFAAbstractStateNode
getId, getSuccessors
-
Constructor Details
-
DFAStateNode
public DFAStateNode(short id, byte flags, short loopTransitionIndex, short indexOfNodeId, byte indexOfIsFast, short[] successors, Matchers matchers, DFASimpleCG simpleCG)
-
-
Method Details
-
buildFlags
public static byte buildFlags(boolean finalState, boolean anchoredFinalState, boolean hasBackwardPrefixState, boolean utf16MustDecode) -
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.- Specified by:
createNodeSplitCopyin classDFAAbstractStateNode- Parameters:
copyID- new ID for the copy.- Returns:
- an "almost shallow" copy of this node.
-
getMatchers
-
getSequentialMatchers
-
isFinalState
public boolean isFinalState() -
isAnchoredFinalState
public boolean isAnchoredFinalState() -
hasBackwardPrefixState
public boolean hasBackwardPrefixState() -
utf16MustDecode
public boolean utf16MustDecode() -
hasLoopToSelf
public boolean hasLoopToSelf() -
hasIndexOfNodeId
public boolean hasIndexOfNodeId() -
getIndexOfNodeId
public int getIndexOfNodeId() -
toString
-
toJson
-