public final class RegexRootNode
extends com.oracle.truffle.api.nodes.RootNode
| 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, createConstantNode, getCallTarget, getCompilerOptions, getFrameDescriptor, getName, getQualifiedName, isCaptureFramesForTrace, isCloneUninitializedSupported, isCloningAllowed, isInstrumentable, isInternal, setCallTargetaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic 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.