public final class TRegexDFAExecutorNode extends TRegexExecutorNode
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_MATCH |
root| Constructor and Description |
|---|
TRegexDFAExecutorNode(TRegexDFAExecutorProperties props,
int maxNumberOfNFAStates,
DFAAbstractStateNode[] states,
DFACaptureGroupLazyTransition[] cgTransitions) |
TRegexDFAExecutorNode(TRegexDFAExecutorProperties props,
int maxNumberOfNFAStates,
DFAAbstractStateNode[] states,
DFACaptureGroupLazyTransition[] cgTransitions,
TRegexDFAExecutorDebugRecorder debugRecorder) |
| Modifier and Type | Method and Description |
|---|---|
TRegexExecutorLocals |
createLocals(Object input,
int fromIndex,
int index,
int maxIndex) |
Object |
execute(TRegexExecutorLocals abstractLocals,
boolean compactString)
records position of the END of the match found, or -1 if no match exists.
|
double |
getCGArrayCopyRatio() |
double |
getCGReorderRatio() |
DFACaptureGroupLazyTransition[] |
getCGTransitions() |
TRegexDFAExecutorDebugRecorder |
getDebugRecorder() |
int |
getMaxNumberOfNFAStates() |
int |
getMinIndex(TRegexExecutorLocals locals) |
int |
getNumberOfCGTransitions() |
int |
getNumberOfStates() |
int |
getNumberOfTransitions() |
int |
getPrefixLength() |
TRegexDFAExecutorProperties |
getProperties() |
boolean |
isAnchored() |
boolean |
isBackward() |
boolean |
isForward() |
boolean |
isGenericCG() |
boolean |
isRegressionTestMode() |
boolean |
isSearching() |
boolean |
isSimpleCG() |
boolean |
recordExecution() |
boolean |
writesCaptureGroups()
Returns
true if this executor may write any new capture group boundaries. |
countUpTo, getAstralProfile, getBMPProfile, getEncoding, getInputLength, getMaxIndex, getNumberOfCaptureGroups, inputAdvance, inputAtBegin, inputAtEnd, inputHasNext, inputHasNext, inputHasNext, inputHasNext, inputIncNextIndexRaw, inputIncNextIndexRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputReadAndDecode, inputReadAndDecode, inputReadRaw, inputReadRaw, inputReadRaw, inputReadRaw, inputSkip, inputSkipIntl, inputSkipReverse, inputUTF16IsHighSurrogate, inputUTF16IsLowSurrogate, inputUTF16ToCodePoint, rewindUpTo, setRootaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic static final int NO_MATCH
public TRegexDFAExecutorNode(TRegexDFAExecutorProperties props, int maxNumberOfNFAStates, DFAAbstractStateNode[] states, DFACaptureGroupLazyTransition[] cgTransitions, TRegexDFAExecutorDebugRecorder debugRecorder)
public TRegexDFAExecutorNode(TRegexDFAExecutorProperties props, int maxNumberOfNFAStates, DFAAbstractStateNode[] states, DFACaptureGroupLazyTransition[] cgTransitions)
public int getPrefixLength()
public boolean isAnchored()
public boolean isForward()
isForward in class TRegexExecutorNodepublic boolean isBackward()
public boolean isSearching()
public boolean isSimpleCG()
public boolean isGenericCG()
public boolean isRegressionTestMode()
public DFACaptureGroupLazyTransition[] getCGTransitions()
public int getNumberOfStates()
public int getNumberOfTransitions()
public int getNumberOfCGTransitions()
public boolean recordExecution()
public TRegexDFAExecutorDebugRecorder getDebugRecorder()
public TRegexExecutorLocals createLocals(Object input, int fromIndex, int index, int maxIndex)
createLocals in class TRegexExecutorNodepublic boolean writesCaptureGroups()
TRegexExecutorNodetrue if this executor may write any new capture group boundaries.writesCaptureGroups in class TRegexExecutorNodepublic Object execute(TRegexExecutorLocals abstractLocals, boolean compactString)
execute in class TRegexExecutorNodepublic int getMinIndex(TRegexExecutorLocals locals)
getMinIndex in class TRegexExecutorNodepublic TRegexDFAExecutorProperties getProperties()
public int getMaxNumberOfNFAStates()
public double getCGReorderRatio()
public double getCGArrayCopyRatio()