Class RemoteObject
java.lang.Object
com.oracle.truffle.tools.chromeinspector.types.RemoteObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumAn additional type mark specifying the value internal structure. -
Constructor Summary
ConstructorsConstructorDescriptionRemoteObject(com.oracle.truffle.api.debug.DebugScope scope) RemoteObject(com.oracle.truffle.api.debug.DebugScope scope, String objectId) RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean readEagerly, boolean generatePreview, InspectorExecutionContext context) RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean readEagerly, boolean generatePreview, InspectorExecutionContext context, RemoteObject.IndexRange indexRange) RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean readEagerly, boolean generatePreview, InspectorExecutionContext context, RemoteObject.TypeMark typeMark) RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean generatePreview, InspectorExecutionContext context) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.graalvm.shadowed.org.json.JSONObjectcreateJSONResultValue(com.oracle.truffle.api.debug.DebugValue debugValue, boolean allowToStringSideEffects, PrintWriter err) Create a JSON object representing the providedDebugValue.static RemoteObjectcreateNullObject(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env env, com.oracle.truffle.api.nodes.LanguageInfo language) static RemoteObjectcreateSimpleObject(TypeInfo.TYPE type, String className, String description) com.oracle.truffle.api.debug.DebugValueGet the value, ornullwhen there is ascope.getId()Get the raw (primitive, String, or null) value.com.oracle.truffle.api.debug.DebugScopegetScope()Get the frame, ornullwhen there is avalue.com.oracle.truffle.api.debug.DebugValuebooleanTest whether the JSON value can be parsed back to the equal DebugValue (byCallArgument).static voidresetIDs()For test purposes only.voidsetScopeReceiver(com.oracle.truffle.api.debug.DebugValue scopeReceiver) org.graalvm.shadowed.org.json.JSONObjecttoJSON()
-
Constructor Details
-
RemoteObject
public RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean generatePreview, InspectorExecutionContext context) -
RemoteObject
public RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean readEagerly, boolean generatePreview, InspectorExecutionContext context) -
RemoteObject
public RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean readEagerly, boolean generatePreview, InspectorExecutionContext context, RemoteObject.TypeMark typeMark) -
RemoteObject
public RemoteObject(com.oracle.truffle.api.debug.DebugValue debugValue, boolean readEagerly, boolean generatePreview, InspectorExecutionContext context, RemoteObject.IndexRange indexRange) -
RemoteObject
public RemoteObject(com.oracle.truffle.api.debug.DebugScope scope) -
RemoteObject
-
-
Method Details
-
getTypeMark
-
setScopeReceiver
public void setScopeReceiver(com.oracle.truffle.api.debug.DebugValue scopeReceiver) -
getScopeReceiver
public com.oracle.truffle.api.debug.DebugValue getScopeReceiver() -
createSimpleObject
public static RemoteObject createSimpleObject(TypeInfo.TYPE type, String className, String description) -
createNullObject
public static RemoteObject createNullObject(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env env, com.oracle.truffle.api.nodes.LanguageInfo language) -
createJSONResultValue
public static org.graalvm.shadowed.org.json.JSONObject createJSONResultValue(com.oracle.truffle.api.debug.DebugValue debugValue, boolean allowToStringSideEffects, PrintWriter err) Create a JSON object representing the providedDebugValue. Use when a reply by value is requested. -
getId
-
toJSON
public org.graalvm.shadowed.org.json.JSONObject toJSON() -
isReplicable
public boolean isReplicable()Test whether the JSON value can be parsed back to the equal DebugValue (byCallArgument). -
getDebugValue
public com.oracle.truffle.api.debug.DebugValue getDebugValue()Get the value, ornullwhen there is ascope. -
getRawValue
Get the raw (primitive, String, or null) value. -
getScope
public com.oracle.truffle.api.debug.DebugScope getScope()Get the frame, ornullwhen there is avalue. -
getIndexRange
-
resetIDs
public static void resetIDs()For test purposes only. Do not call from production code.
-