Class TRegexDFAExecutorProperties

java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.TRegexDFAExecutorProperties

public final class TRegexDFAExecutorProperties extends Object
  • Constructor Details

    • TRegexDFAExecutorProperties

      public TRegexDFAExecutorProperties(boolean forward, boolean searching, boolean genericCG, boolean allowSimpleCG, boolean trackLastGroup, int minResultLength)
  • Method Details

    • isForward

      public boolean isForward()
    • isBackward

      public boolean isBackward()
    • isSearching

      public boolean isSearching()
    • isGenericCG

      public boolean isGenericCG()
      True if the DFA executor must track capture groups via CGTrackingDFAStateNodes.
    • isAllowSimpleCG

      public boolean isAllowSimpleCG()
    • isSimpleCG

      public boolean isSimpleCG()
      True if the DFA executor tracks capture groups via DFASimpleCG.
    • setSimpleCG

      public void setSimpleCG(boolean simpleCG)
    • isSimpleCGMustCopy

      public boolean isSimpleCGMustCopy()
      True if the DFA executor tracks capture groups via DFASimpleCG, but must save the current result every time a final state is reached. This is necessary if any non-final states are reachable from a final state in the DFA.
    • setSimpleCGMustCopy

      public void setSimpleCGMustCopy(boolean simpleCGMustCopy)
    • canFindStart

      public boolean canFindStart()
    • setCanFindStart

      public void setCanFindStart(boolean canFindStart)
    • tracksLastGroup

      public boolean tracksLastGroup()
    • getMinResultLength

      public int getMinResultLength()