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