use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class ContinueResponse method create.
public static ContinueResponse 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 ContinueResponse(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class ExceptionInfoResponse method create.
public static ExceptionInfoResponse 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 ExceptionInfoResponse(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class FunctionBreakpoint method create.
public static FunctionBreakpoint create(String name) {
final JSONObject json = new JSONObject();
json.put("name", name);
return new FunctionBreakpoint(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class GotoTargetsArguments method create.
public static GotoTargetsArguments create(Source source, Integer line) {
final JSONObject json = new JSONObject();
json.put("source", source.jsonData);
json.put("line", line);
return new GotoTargetsArguments(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class InitializeRequestArguments method create.
public static InitializeRequestArguments create(String adapterID) {
final JSONObject json = new JSONObject();
json.put("adapterID", adapterID);
return new InitializeRequestArguments(json);
}
Aggregations