public final class TRegexDFAExecutorNode extends TRegexExecutorNode
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_MATCH |
| Constructor and Description |
|---|
TRegexDFAExecutorNode(RegexSource source,
TRegexDFAExecutorProperties props,
int numberOfCaptureGroups,
int maxNumberOfNFAStates,
DFAAbstractStateNode[] states,
TRegexDFAExecutorDebugRecorder debugRecorder,
TRegexDFAExecutorNode innerLiteralPrefixMatcher) |
TRegexDFAExecutorNode(RegexSource source,
TRegexDFAExecutorProperties props,
int numberOfCaptureGroups,
int numberOfTransitions,
int maxNumberOfNFAStates,
DFAAbstractStateNode[] states,
int[] cgResultOrder,
TRegexDFAExecutorDebugRecorder debugRecorder,
TRegexDFAExecutorNode innerLiteralPrefixMatcher) |
| Modifier and Type | Method and Description |
|---|---|
TRegexExecutorLocals |
createLocals(Object input,
int fromIndex,
int index,
int maxIndex) |
Object |
execute(com.oracle.truffle.api.frame.VirtualFrame frame,
TRegexExecutorLocals abstractLocals,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange,
boolean tString)
records position of the END of the match found, or -1 if no match exists.
|
TRegexDFAExecutorDebugRecorder |
getDebugRecorder() |
int |
getMaxNumberOfNFAStates() |
int |
getMinIndex(TRegexExecutorLocals locals) |
String |
getName() |
int |
getNumberOfStates() |
int |
getPrefixLength() |
TRegexDFAExecutorProperties |
getProperties() |
boolean |
isAnchored() |
boolean |
isBackward() |
boolean |
isForward() |
boolean |
isGenericCG() |
boolean |
isRegressionTestMode() |
boolean |
isSearching() |
boolean |
isSimpleCG() |
boolean |
recordExecution() |
TRegexDFAExecutorNode |
shallowCopy() |
boolean |
writesCaptureGroups()
Returns
true if this executor may write any new capture group boundaries. |
countUpTo, getAstralProfile, getBMPProfile, getEncoding, getInputLength, getMaxIndex, getNumberOfCaptureGroups, getNumberOfTransitions, getSource, 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, isBooleanMatch, isUTF16, isUTF32, isUTF8, rewindUpTocreateWrapper, isInstrumentableaccept, 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(RegexSource source, TRegexDFAExecutorProperties props, int numberOfCaptureGroups, int maxNumberOfNFAStates, DFAAbstractStateNode[] states, TRegexDFAExecutorDebugRecorder debugRecorder, TRegexDFAExecutorNode innerLiteralPrefixMatcher)
public TRegexDFAExecutorNode(RegexSource source, TRegexDFAExecutorProperties props, int numberOfCaptureGroups, int numberOfTransitions, int maxNumberOfNFAStates, DFAAbstractStateNode[] states, int[] cgResultOrder, TRegexDFAExecutorDebugRecorder debugRecorder, TRegexDFAExecutorNode innerLiteralPrefixMatcher)
public TRegexDFAExecutorNode shallowCopy()
shallowCopy in class TRegexExecutorNodepublic int getPrefixLength()
public boolean isAnchored()
public String getName()
getName in class TRegexExecutorNodepublic boolean isForward()
isForward in class TRegexExecutorNodepublic boolean isBackward()
public boolean isSearching()
public boolean isSimpleCG()
public boolean isGenericCG()
public boolean isRegressionTestMode()
public int getNumberOfStates()
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(com.oracle.truffle.api.frame.VirtualFrame frame, TRegexExecutorLocals abstractLocals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange, boolean tString)
execute in class TRegexExecutorBaseNodepublic int getMinIndex(TRegexExecutorLocals locals)
getMinIndex in class TRegexExecutorNodepublic TRegexDFAExecutorProperties getProperties()
public int getMaxNumberOfNFAStates()