public final class RegexRootNode
extends com.oracle.truffle.api.nodes.RootNode
| Modifier and Type | Field and Description |
|---|---|
static com.oracle.truffle.api.frame.FrameDescriptor |
SHARED_EMPTY_FRAMEDESCRIPTOR |
| Constructor and Description |
|---|
RegexRootNode(RegexLanguage language,
RegexBodyNode body) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkThreadInterrupted()
Throws a
RegexInterruptedException if the current thread is marked as interrupted. |
Object |
execute(com.oracle.truffle.api.frame.VirtualFrame frame) |
RegexSource |
getSource() |
com.oracle.truffle.api.source.SourceSection |
getSourceSection() |
String |
toString() |
cloneUninitialized, copy, countsTowardsStackTraceLimit, createConstantNode, findAsynchronousFrames, getCallTarget, getFrameDescriptor, getName, getParentFrameDescriptor, getQualifiedName, isCaptureFramesForTrace, isCloneUninitializedSupported, isCloningAllowed, isInstrumentable, isInternal, isTrivial, prepareForAOT, translateStackTraceElementgetLanguage, getLanguageInfoaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic static final com.oracle.truffle.api.frame.FrameDescriptor SHARED_EMPTY_FRAMEDESCRIPTOR
public RegexRootNode(RegexLanguage language, RegexBodyNode body)
public RegexSource getSource()
public com.oracle.truffle.api.source.SourceSection getSourceSection()
getSourceSection in class com.oracle.truffle.api.nodes.Nodepublic Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
execute in class com.oracle.truffle.api.nodes.RootNodepublic String toString()
toString in class com.oracle.truffle.api.nodes.Nodepublic static void checkThreadInterrupted()
RegexInterruptedException if the current thread is marked as interrupted.
This method should be called in interpreter mode only, since all cancel requests will cause a
deopt on the entire AST held by this root node.