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

Method invokeMethod

src/bsh/This.java:261–268  ·  view source on GitHub ↗

Invoke specified method as from outside java code, using the declaring interpreter and current namespace. The call stack will indicate that the method is being invoked from outside of bsh in native java code. Note: you must still wrap/unwrap args/return values using Primitive/Primitive.u

( String name, Object [] args )

Source from the content-addressed store, hash-verified

259 @see bsh.Primitive
260 */
261 public Object invokeMethod( String name, Object [] args )
262 throws EvalError
263 {
264 // null callstack, one will be created for us
265 return invokeMethod(
266 name, args, null/*declaringInterpreter*/, null, null,
267 false/*declaredOnly*/ );
268 }
269
270 /**
271 Invoke a method in this namespace with the specified args,

Callers 3

runMethod · 0.95
single_threadedMethod · 0.95
invokeImplMethod · 0.45

Calls 15

getTypesMethod · 0.95
invokeMethod · 0.95
toStringMethod · 0.95
setLocalVariableMethod · 0.95
setMethodMethod · 0.95
getThisMethod · 0.95
methodStringMethod · 0.95
getVariableMethod · 0.80
getMethodsMethod · 0.65
getMethodMethod · 0.45
equalsMethod · 0.45
hashCodeMethod · 0.45

Tested by 1

single_threadedMethod · 0.76