Invoke a method known to be static. No object instance is needed and there is no possibility of the method being a bsh scripted method.
(BshClassManager bcm, Class clas, String methodName, Object[] args)
| 103 | * method being a bsh scripted method. |
| 104 | */ |
| 105 | public static Object invokeStaticMethod(BshClassManager bcm, Class clas, String methodName, Object[] args) throws ReflectError, UtilEvalError, InvocationTargetException { |
| 106 | Interpreter.debug("invoke static Method"); |
| 107 | Method method = resolveExpectedJavaMethod(bcm, clas, null, methodName, args, true); |
| 108 | return invokeMethod(method, null, args); |
| 109 | } |
| 110 | |
| 111 | |
| 112 | /** |
no test coverage detected