org.mozilla.javascript
public final class JavaAdapter extends Object implements IdFunctionCall
| Method Summary | |
|---|---|
| static Object | callMethod(ContextFactory factory, Scriptable thisObj, Function f, Object[] args, long argsToWrap)
Utility method which dynamically binds a Context to the current thread,
if none already exists. |
| static Object | convertResult(Object result, Class c) |
| static byte[] | createAdapterCode(ObjToIntMap functionNames, String adapterName, Class superClass, Class[] interfaces, String scriptClassName) |
| static Scriptable | createAdapterWrapper(Scriptable obj, Object adapter) |
| Object | execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) |
| static Object | getAdapterSelf(Class adapterClass, Object adapter) |
| static Function | getFunction(Scriptable obj, String functionName) |
| static void | init(Context cx, Scriptable scope, boolean sealed) |
| static Object | readAdapterObject(Scriptable self, ObjectInputStream in) |
| static Scriptable | runScript(Script script) |
| static void | writeAdapterObject(Object javaObject, ObjectOutputStream out) |