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

Method invokeMain

src/bsh/Interpreter.java:420–428  ·  view source on GitHub ↗
( Class clas, String [] args )

Source from the content-addressed store, hash-verified

418 }
419
420 public static void invokeMain( Class clas, String [] args )
421 throws Exception
422 {
423 Method main = Reflect.resolveJavaMethod(
424 null/*BshClassManager*/, clas, "main",
425 new Class [] { String [].class }, true/*onlyStatic*/ );
426 if ( main != null )
427 main.invoke( null, new Object [] { args } );
428 }
429
430 /**
431 Run interactively. (printing prompts, etc.)

Callers 1

mainMethod · 0.95

Calls 2

resolveJavaMethodMethod · 0.95
invokeMethod · 0.65

Tested by

no test coverage detected