Class TRegexDFAExecutorProperties
java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.TRegexDFAExecutorProperties
-
Constructor Summary
ConstructorsConstructorDescriptionTRegexDFAExecutorProperties(boolean forward, boolean searching, boolean genericCG, boolean allowSimpleCG, boolean trackLastGroup, int minResultLength) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanbooleanbooleanbooleanTrue if the DFA executor must track capture groups viaCGTrackingDFAStateNodes.booleanbooleanTrue if the DFA executor tracks capture groups viaDFASimpleCG.booleanTrue if the DFA executor tracks capture groups viaDFASimpleCG, but must save the current result every time a final state is reached.voidsetCanFindStart(boolean canFindStart) voidsetSimpleCG(boolean simpleCG) voidsetSimpleCGMustCopy(boolean simpleCGMustCopy) boolean
-
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 viaCGTrackingDFAStateNodes. -
isAllowSimpleCG
public boolean isAllowSimpleCG() -
isSimpleCG
public boolean isSimpleCG()True if the DFA executor tracks capture groups viaDFASimpleCG. -
setSimpleCG
public void setSimpleCG(boolean simpleCG) -
isSimpleCGMustCopy
public boolean isSimpleCGMustCopy()True if the DFA executor tracks capture groups viaDFASimpleCG, 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()
-