Package com.oracle.truffle.api
Class TruffleLanguage.InlineParsingRequest
java.lang.Object
com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest
- Enclosing class:
TruffleLanguage<C>
Request for inline parsing. Contains information of what to parse and in which context.
- Since:
- 0.31
-
Method Summary
Modifier and TypeMethodDescriptiongetFrame()
Specifies the execution context for parsing.Specifies the code location for parsing.The source code to parse.
-
Method Details
-
getSource
The source code to parse.- Returns:
- the source code, never
null
- Since:
- 0.31
-
getLocation
Specifies the code location for parsing. The location is specified as an instance of aNode
in the AST. The node can beEventContext.getInstrumentedNode()
, for example.- Returns:
- a
Node
defining AST context for the parsing, it's nevernull
- Since:
- 0.31
-
getFrame
Specifies the execution context for parsing. If the parsing request is used for evaluation during halted execution, for example as inDebugStackFrame.eval(String)
method, this method provides access to currentframe
with local variables, etc.- Returns:
- a
MaterializedFrame
exposing the current execution state ornull
if there is none - Since:
- 0.31
-