MCPcopy Index your code
hub / github.com/benfry/processing4 / invokeMain

Method invokeMain

app/src/processing/app/ui/Splash.java:101–111  ·  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

99 * @param args the command line arguments
100 */
101 @SuppressWarnings("SameParameterValue")
102 static void invokeMain(String className, String[] args) {
103 try {
104 Class.forName(className)
105 .getMethod("main", String[].class)
106 .invoke(null, new Object[] { args });
107
108 } catch (Exception e) {
109 throw new InternalError("Failed to invoke main method", e);
110 }
111 }
112
113
114// /**

Callers 1

mainMethod · 0.95

Calls 1

getMethodMethod · 0.80

Tested by

no test coverage detected