Example usage for Java javax.script Invocable fields, constructors, methods, implement or subclass
The text is from its open source code.
T | getInterface(Class Returns an implementation of an interface using functions compiled in the interpreter. |
T | getInterface(Object thiz, Class Returns an implementation of an interface using member functions of a scripting object compiled in the interpreter. |
Object | invokeFunction(String name, Object... args) Used to call top-level procedures and functions defined in scripts. |
Object | invokeMethod(Object thiz, String name, Object... args) Calls a method on a script object compiled during a previous script execution, which is retained in the state of the ScriptEngine . |