MCPcopy Index your code
hub / github.com/apache/groovy / run

Method run

src/main/java/org/apache/groovy/util/JavaShell.java:123–127  ·  view source on GitHub ↗

Run main method @param className the main class name @param options compiler options @param src the source code @param args arguments for main method

(String className, Iterable<String> options, String src, String... args)

Source from the content-addressed store, hash-verified

121 * @param args arguments for main method
122 */
123 public void run(String className, Iterable<String> options, String src, String... args) throws Throwable {
124 Class<?> c = compile(className, options, src);
125 Method mainMethod = c.getMethod(MAIN_METHOD_NAME, String[].class);
126 mainMethod.invoke(null, (Object) args);
127 }
128
129 /**
130 * Run main method

Callers

nothing calls this directly

Calls 3

compileMethod · 0.95
getMethodMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected