Invocable
Interface Invocable
public interface Invocable
The optional interface implemented by ScriptEngines whose methods allow the invocation of procedures in scripts that have previously been executed.
- Since:
- 1.6
Methods
invokeMethod
Object invokeMethod(Object thiz, String name, Object... args) throws ScriptException, NoSuchMethodException
Calls a method on a script object compiled during a previous script execution, which is retained in the state of the ScriptEngine
.
- Parameters:
-
name
- The name of the procedure to be called. -
thiz
- If the procedure is a member of a class defined in the script and thiz i