javaObject
protected Object javaObject
members
protected org.mozilla.javascript.JavaMembers members
parent
protected Scriptable parent
The parent scope of this object.
prototype
protected Scriptable prototype
The prototype of this object.
staticType
protected Class> staticType
NativeJavaObject
public NativeJavaObject()
NativeJavaObject
public NativeJavaObject(Scriptable scope,
Object javaObject,
Class> staticType)
NativeJavaObject
public NativeJavaObject(Scriptable scope,
Object javaObject,
Class> staticType,
boolean isAdapter)
canConvert
public static boolean canConvert(Object fromObj,
Class> to)
Determine whether we can/should convert between the given type and the
desired one. This should be superceded by a conversion-cost calculation
function, but for now I'll hide behind precedent.
coerceType
public static Object coerceType(Class> type,
Object value)
as of 1.5 Release 4
Not intended for public use. Callers should use the
public API Context.toType.
org.mozilla.javascript.Context.jsToJava(Object, Class)
initMembers
protected void initMembers()
wrap
public static Object wrap(Scriptable scope,
Object obj,
Class> staticType)
Use Context.getWrapFactory()
together with calling WrapFactory.wrap(Context, Scriptable, Object, Class)