MCPcopy Index your code
hub / github.com/badvision/jace / execute

Method execute

src/main/java/jace/ide/Program.java:220–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 }
219
220 public void execute() throws Exception {
221 lastResult = getHandler().compile(this);
222 manageCompileResult(lastResult);
223 if (lastResult.isSuccessful()) {
224 getHandler().execute(lastResult);
225 } else {
226 StringBuilder error = new StringBuilder("Compilation failed:\n");
227 lastResult.getErrors().forEach((line, message) -> error.append("Line %d: %s%n".formatted(line, message)));
228 lastResult.getOtherMessages().forEach(message -> error.append(message).append("\n"));
229 getHandler().clean(lastResult);
230 throw new Exception(error.toString());
231 }
232 }
233
234 public void test() {
235 lastResult = getHandler().compile(this);

Callers

nothing calls this directly

Calls 9

getHandlerMethod · 0.95
manageCompileResultMethod · 0.95
compileMethod · 0.65
isSuccessfulMethod · 0.65
executeMethod · 0.65
getErrorsMethod · 0.65
getOtherMessagesMethod · 0.65
cleanMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected