|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Invocable
See Javadoc of Java Scripting API
Method Summary | |
---|---|
java.lang.Object |
getInterface(java.lang.Class clasz)
Retrieves an instance of java class whose methods are impelemented using procedures in script which are in the intermediate code repository in the underlying interpreter. |
java.lang.Object |
getInterface(java.lang.Object thiz,
java.lang.Class clasz)
|
java.lang.Object |
invokeFunction(java.lang.String name,
java.lang.Object[] args)
Invokes a scripting procedure with the given name using the array of objects as its arguments set. |
java.lang.Object |
invokeMethod(java.lang.Object thiz,
java.lang.String name,
java.lang.Object[] args)
Invokes a procedure on an object which already defined in the script using the array of objects as its arguments set. |
Method Detail |
---|
java.lang.Object invokeFunction(java.lang.String name, java.lang.Object[] args) throws ScriptException, java.lang.NoSuchMethodException
name
- name of the scripting procedureargs
- arguments set for the scripting procedure
ScriptException
- if the invocation of the scripting procedure
fails
java.lang.NoSuchMethodException
- if method with given name or matching
argument types cannot be foundjava.lang.Object invokeMethod(java.lang.Object thiz, java.lang.String name, java.lang.Object[] args) throws ScriptException, java.lang.NoSuchMethodException
name
- name of the procedure to be invokedthiz
- object on which the procedure is calledargs
- arguments set for the procedure
ScriptException
- if the invocation of the procedure
fails
java.lang.NoSuchMethodException
- if a method with given name or matching
argument types cannot be foundjava.lang.Object getInterface(java.lang.Class clasz)
clasz
- an interface which the returned class must
implement
java.lang.Object getInterface(java.lang.Object thiz, java.lang.Class clasz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |