use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class LaunchResponse method create.
public static LaunchResponse 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 LaunchResponse(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class DataBreakpoint method create.
public static DataBreakpoint create(String dataId) {
final JSONObject json = new JSONObject();
json.put("dataId", dataId);
return new DataBreakpoint(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class EvaluateResponse method create.
public static EvaluateResponse 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 EvaluateResponse(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class ExceptionBreakpointsFilter method create.
public static ExceptionBreakpointsFilter create(String filter, String label) {
final JSONObject json = new JSONObject();
json.put("filter", filter);
json.put("label", label);
return new ExceptionBreakpointsFilter(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class Message method create.
public static Message create(Integer id, String format) {
final JSONObject json = new JSONObject();
json.put("id", id);
json.put("format", format);
return new Message(json);
}
Aggregations