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 aNodein the AST. The node can beEventContext.getInstrumentedNode(), for example.- Returns:
- a
Nodedefining 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 currentframewith local variables, etc.- Returns:
- a
MaterializedFrameexposing the current execution state ornullif there is none - Since:
- 0.31
-