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 )
| 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, |