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

public class DFAStateNode extends DFAAbstractStateNode
  • 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

      public DFAStateNode createNodeSplitCopy(short copyID)
      Description copied from class: DFAAbstractStateNode
      Creates a copy of this state node, where all attributes are copied shallowly, except for the DFAAbstractStateNode.successors array, which is deep-copied, and the node ID, which is replaced by the parameter copyID. Used by DFANodeSplit.
      Specified by:
      createNodeSplitCopy in class DFAAbstractStateNode
      Parameters:
      copyID - new ID for the copy.
      Returns:
      an "almost shallow" copy of this node.
    • getMatchers

      public final Matchers getMatchers()
    • getSequentialMatchers

      public final SequentialMatchers 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

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public JsonValue toJson()