public NativeJavaObject(Scriptable scope, Object javaObject, Class staticType) { this.parent = scope; this.javaObject = javaObject; this.staticType = staticType; Class dynamicType = javaObject != null ? javaObject.getClass() : staticType; members = JavaMembers.lookupClass(scope, dynamicType, staticType); fieldAndMethods = members.getFieldAndMethodsObjects(this, javaObject, false); }
public NativeJavaObject() { }
    public NativeJavaObject(Scriptable scope, Object javaObject,                            Class staticType)    {        this.parent = scope;        this.javaObject = javaObject;        this.staticType = staticType;        Class dynamicType = javaObject != null ? javaObject.getClass()            : staticType;        members = JavaMembers.lookupClass(scope, dynamicType, staticType);        fieldAndMethods = members.getFieldAndMethodsObjects(this, javaObject, false);    }