use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class AttachResponse method create.
public static AttachResponse 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 AttachResponse(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class BreakpointLocationsArguments method create.
public static BreakpointLocationsArguments create(Source source, Integer line) {
final JSONObject json = new JSONObject();
json.put("source", source.jsonData);
json.put("line", line);
return new BreakpointLocationsArguments(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class DisassembledInstruction method create.
public static DisassembledInstruction create(String address, String instruction) {
final JSONObject json = new JSONObject();
json.put("address", address);
json.put("instruction", instruction);
return new DisassembledInstruction(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class EvaluateArguments method create.
public static EvaluateArguments create(String expression) {
final JSONObject json = new JSONObject();
json.put("expression", expression);
return new EvaluateArguments(json);
}
use of com.oracle.truffle.tools.utils.json.JSONObject in project graal by oracle.
the class CompletionsResponse method create.
public static CompletionsResponse 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 CompletionsResponse(json);
}
Aggregations