Class TRegexExecutorBaseNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.regex.tregex.nodes.TRegexExecutorBaseNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode,com.oracle.truffle.api.nodes.NodeInterface,Cloneable
- Direct Known Subclasses:
TRegexExecutorNode
public abstract class TRegexExecutorBaseNode
extends com.oracle.truffle.api.nodes.Node
implements com.oracle.truffle.api.instrumentation.InstrumentableNode
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TRegexExecutorLocalscreateLocals(com.oracle.truffle.api.strings.TruffleString input, int fromIndex, int maxIndex, int regionFrom, int regionTo, int index) final com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNodecreateWrapper(com.oracle.truffle.api.instrumentation.ProbeNode probeNode) abstract Objectexecute(com.oracle.truffle.api.frame.VirtualFrame frame, TRegexExecutorLocals locals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) final Encodings.Encodingabstract StringgetName()abstract intabstract intabstract RegexSourcefinal booleanabstract booleanfinal booleanabstract booleanbooleanfinal booleanisUTF16()final booleanisUTF32()final booleanisUTF8()abstract TRegexExecutorNodefinal TRegexExecutorNodeunwrap()abstract booleanReturnstrueif this executor may write any new capture group boundaries.Methods 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
-
Constructor Details
-
TRegexExecutorBaseNode
public TRegexExecutorBaseNode()
-
-
Method Details
-
execute
public abstract Object execute(com.oracle.truffle.api.frame.VirtualFrame frame, TRegexExecutorLocals locals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) -
isInstrumentable
public final boolean isInstrumentable()- Specified by:
isInstrumentablein interfacecom.oracle.truffle.api.instrumentation.InstrumentableNode
-
createWrapper
public final com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode probeNode) - Specified by:
createWrapperin interfacecom.oracle.truffle.api.instrumentation.InstrumentableNode
-
unwrap
-
shallowCopy
-
getSource
-
getEncoding
-
isUTF8
public final boolean isUTF8() -
isUTF16
public final boolean isUTF16() -
isUTF32
public final boolean isUTF32() -
isBooleanMatch
public final boolean isBooleanMatch() -
getNumberOfStates
public abstract int getNumberOfStates() -
getNumberOfTransitions
public abstract int getNumberOfTransitions() -
getName
-
isForward
public abstract boolean isForward() -
isTrivial
public boolean isTrivial() -
isSimpleCG
public abstract boolean isSimpleCG() -
writesCaptureGroups
public abstract boolean writesCaptureGroups()Returnstrueif this executor may write any new capture group boundaries. -
createLocals
public abstract TRegexExecutorLocals createLocals(com.oracle.truffle.api.strings.TruffleString input, int fromIndex, int maxIndex, int regionFrom, int regionTo, int index)
-