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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations