callMethod
public 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.
convertResult
public static Object convertResult(Object result,
Class c)
createAdapterCode
public static byte[] createAdapterCode(ObjToIntMap functionNames,
String adapterName,
Class superClass,
Class[] interfaces,
String scriptClassName)
getAdapterSelf
public static Object getAdapterSelf(Class adapterClass,
Object adapter)
throws NoSuchFieldException,
IllegalAccessException
readAdapterObject
public static Object readAdapterObject(Scriptable self,
ObjectInputStream in)
throws IOException,
ClassNotFoundException
writeAdapterObject
public static void writeAdapterObject(Object javaObject,
ObjectOutputStream out)
throws IOException