public abstract class FrameLibrary
extends com.oracle.truffle.api.library.Library
FrameLibrary.readMember(com.oracle.truffle.tools.agentscript.FrameLibrary.Query, java.lang.String))
in a different way - for example by exposing more than it is in their frames
for some specific languages.
It is expected more messages appear in this library during its evolution. Such messages will be
provided with their appropriate default implementation.
| Modifier and Type | Class and Description |
|---|---|
class |
FrameLibrary.Query
Holds location, environment, etc.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FrameLibrary()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectNames(FrameLibrary.Query env,
Set<String> names)
Collect names of local variables.
|
static FrameLibrary |
getUncached()
Default implementation of the
FrameLibrary. |
Object |
readMember(FrameLibrary.Query env,
String member)
Reads a value of a local variable.
|
void |
writeMember(FrameLibrary.Query env,
String member,
Object value)
Assigns new value to an existing local variable.
|
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic static FrameLibrary getUncached()
FrameLibrary. Provides the same view of local variables
as available to debugger.public Object readMember(FrameLibrary.Query env, String member) throws com.oracle.truffle.api.interop.UnknownIdentifierException
env - location, environment, etc. to read values frommember - the name of the variable to readcom.oracle.truffle.api.interop.UnknownIdentifierException - thrown when the member is unknownpublic void writeMember(FrameLibrary.Query env, String member, Object value) throws com.oracle.truffle.api.interop.UnknownIdentifierException, com.oracle.truffle.api.interop.UnsupportedTypeException
env - location, environment, etc. to read values frommember - the name of the variable to modifyvalue - new value for the variablecom.oracle.truffle.api.interop.UnknownIdentifierException - if the variable doesn't
existcom.oracle.truffle.api.interop.UnsupportedTypeException - if the type isn't appropriatepublic void collectNames(FrameLibrary.Query env, Set<String> names) throws com.oracle.truffle.api.interop.InteropException
env - location, environment, etc. to read values fromnames - collection to add the names tocom.oracle.truffle.api.interop.InteropException - thrown when something goes wrong