Class TRegexDFAExecutorNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.regex.tregex.nodes.TRegexExecutorBaseNode
com.oracle.truffle.regex.tregex.nodes.TRegexExecutorNode
com.oracle.truffle.regex.tregex.nodes.dfa.TRegexDFAExecutorNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode,com.oracle.truffle.api.nodes.NodeInterface,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode -
Field Summary
FieldsFields inherited from class com.oracle.truffle.regex.tregex.nodes.TRegexExecutorNode
ASTRAL_PROBABILITY, BMP_PROBABILITY, CONTINUE_PROBABILITY, EXIT_PROBABILITY, LATIN1_PROBABILITY -
Constructor Summary
ConstructorsConstructorDescriptionTRegexDFAExecutorNode(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) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateLocals(com.oracle.truffle.api.strings.TruffleString input, int fromIndex, int maxIndex, int regionFrom, int regionTo, int index) 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.intintintgetMinIndex(TRegexExecutorLocals locals) getName()intintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanReturnstrueif this executor may write any new capture group boundaries.Methods inherited from class com.oracle.truffle.regex.tregex.nodes.TRegexExecutorNode
countUpTo, getAstralProfile, getBMPProfile, getMaxIndex, getNumberOfCaptureGroups, getNumberOfTransitions, getSource, inputAdvance, inputAtBegin, inputAtEnd, inputGetCodePointSize, inputGetCodePointSize, inputHasNext, inputHasNext, inputHasNext, inputIncNextIndexRaw, inputIncNextIndexRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputIncRaw, inputReadAndDecode, inputReadAndDecode, inputReadRaw, inputReadRaw, inputReadRaw, inputReadRaw, inputSkip, inputSkipIntl, inputSkipReverse, inputUTF16IsHighSurrogate, inputUTF16IsLowSurrogate, inputUTF16ToCodePoint, rewindUpToMethods inherited from class com.oracle.truffle.regex.tregex.nodes.TRegexExecutorBaseNode
createWrapper, getEncoding, isBooleanMatch, isInstrumentable, isUTF16, isUTF32, isUTF8, unwrapMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
findNearestNodeAt, findNearestNodeAt, getNodeObject, hasTag, materializeInstrumentableNodes
-
Field Details
-
NO_MATCH
public static final int NO_MATCH- See Also:
-
-
Constructor Details
-
TRegexDFAExecutorNode
public TRegexDFAExecutorNode(RegexSource source, TRegexDFAExecutorProperties props, int numberOfCaptureGroups, int maxNumberOfNFAStates, com.oracle.truffle.api.strings.TruffleString.CodePointSet[] indexOfParameters, DFAAbstractStateNode[] states, TRegexDFAExecutorDebugRecorder debugRecorder, TRegexDFAExecutorNode innerLiteralPrefixMatcher) -
TRegexDFAExecutorNode
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)
-
-
Method Details
-
shallowCopy
- Specified by:
shallowCopyin classTRegexExecutorBaseNode
-
getPrefixLength
public int getPrefixLength() -
isAnchored
public boolean isAnchored() -
getName
- Specified by:
getNamein classTRegexExecutorBaseNode
-
isForward
public boolean isForward()- Specified by:
isForwardin classTRegexExecutorBaseNode
-
isTrivial
public boolean isTrivial()- Overrides:
isTrivialin classTRegexExecutorBaseNode
-
isBackward
public boolean isBackward() -
isSearching
public boolean isSearching() -
isSimpleCG
public boolean isSimpleCG()- Overrides:
isSimpleCGin classTRegexExecutorNode
-
isGenericCG
public boolean isGenericCG() -
canFindStart
public boolean canFindStart() -
getNumberOfStates
public int getNumberOfStates()- Specified by:
getNumberOfStatesin classTRegexExecutorBaseNode
-
recordExecution
public boolean recordExecution() -
getDebugRecorder
-
createLocals
public TRegexExecutorLocals createLocals(com.oracle.truffle.api.strings.TruffleString input, int fromIndex, int maxIndex, int regionFrom, int regionTo, int index) - Specified by:
createLocalsin classTRegexExecutorBaseNode
-
writesCaptureGroups
public boolean writesCaptureGroups()Description copied from class:TRegexExecutorBaseNodeReturnstrueif this executor may write any new capture group boundaries.- Specified by:
writesCaptureGroupsin classTRegexExecutorBaseNode
-
execute
public 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.- Specified by:
executein classTRegexExecutorBaseNode
-
getMinIndex
- Overrides:
getMinIndexin classTRegexExecutorNode
-
getProperties
-
getMaxNumberOfNFAStates
public int getMaxNumberOfNFAStates() -
getCGTrackingCost
public int getCGTrackingCost()
-