Search in sources :

Example 31 with JSONObject

use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.

the class ContinueArguments method create.

public static ContinueArguments create(Integer threadId) {
    final JSONObject json = new JSONObject();
    json.put("threadId", threadId);
    return new ContinueArguments(json);
}
Also used : JSONObject(com.oracle.truffle.tools.utils.json.JSONObject)

Example 32 with JSONObject

use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.

the class LoadedSourcesResponse method create.

public static LoadedSourcesResponse create(ResponseBody body, Integer requestSeq, Boolean success, String command, Integer seq) {
    final JSONObject json = new JSONObject();
    json.put("body", body.jsonData);
    json.put("type", "response");
    json.put("request_seq", requestSeq);
    json.put("success", success);
    json.put("command", command);
    json.put("seq", seq);
    return new LoadedSourcesResponse(json);
}
Also used : JSONObject(com.oracle.truffle.tools.utils.json.JSONObject)

Example 33 with JSONObject

use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.

the class ExitedEvent method create.

public static ExitedEvent create(EventBody body, Integer seq) {
    final JSONObject json = new JSONObject();
    json.put("event", "exited");
    json.put("body", body.jsonData);
    json.put("type", "event");
    json.put("seq", seq);
    return new ExitedEvent(json);
}
Also used : JSONObject(com.oracle.truffle.tools.utils.json.JSONObject)

Example 34 with JSONObject

use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.

the class GotoTarget method create.

public static GotoTarget create(Integer id, String label, Integer line) {
    final JSONObject json = new JSONObject();
    json.put("id", id);
    json.put("label", label);
    json.put("line", line);
    return new GotoTarget(json);
}
Also used : JSONObject(com.oracle.truffle.tools.utils.json.JSONObject)

Example 35 with JSONObject

use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.

the class InitializeResponse method create.

public static InitializeResponse create(Integer requestSeq, Boolean success, String command, Integer seq) {
    final JSONObject json = new JSONObject();
    json.put("type", "response");
    json.put("request_seq", requestSeq);
    json.put("success", success);
    json.put("command", command);
    json.put("seq", seq);
    return new InitializeResponse(json);
}
Also used : JSONObject(com.oracle.truffle.tools.utils.json.JSONObject)

Aggregations

JSONObject (com.oracle.truffle.tools.utils.json.JSONObject)318 JSONArray (com.oracle.truffle.tools.utils.json.JSONArray)71 ArrayList (java.util.ArrayList)20 Params (com.oracle.truffle.tools.chromeinspector.commands.Params)18 DebugValue (com.oracle.truffle.api.debug.DebugValue)14 DebugException (com.oracle.truffle.api.debug.DebugException)11 CommandProcessException (com.oracle.truffle.tools.chromeinspector.server.CommandProcessException)10 SourceSection (com.oracle.truffle.api.source.SourceSection)8 HashMap (java.util.HashMap)8 List (java.util.List)8 Collection (java.util.Collection)7 Breakpoint (com.oracle.truffle.api.debug.Breakpoint)6 Source (com.oracle.truffle.api.source.Source)6 Map (java.util.Map)6 LanguageInfo (com.oracle.truffle.api.nodes.LanguageInfo)5 NoSuspendedThreadException (com.oracle.truffle.tools.chromeinspector.InspectorExecutionContext.NoSuspendedThreadException)5 RemoteObject (com.oracle.truffle.tools.chromeinspector.types.RemoteObject)5 JSONTokener (com.oracle.truffle.tools.utils.json.JSONTokener)5 Test (org.junit.Test)5 Location (com.oracle.truffle.tools.chromeinspector.types.Location)4