MCPcopy Index your code
hub / github.com/processing/processing / invokeMain

Method invokeMain

app/src/processing/app/ui/SplashWindow.java:215–225  ·  view source on GitHub ↗

Invokes the main method of the provided class name. @param args the command line arguments

(String className, String[] args)

Source from the content-addressed store, hash-verified

213 * @param args the command line arguments
214 */
215 public static void invokeMain(String className, String[] args) {
216 try {
217 Class.forName(className)
218 .getMethod("main", new Class[] {String[].class})
219 .invoke(null, new Object[] {args});
220 } catch (Exception e) {
221 InternalError error = new InternalError("Failed to invoke main method");
222 error.initCause(e);
223 throw error;
224 }
225 }
226}

Callers 1

mainMethod · 0.95

Calls 1

getMethodMethod · 0.80

Tested by

no test coverage detected