Package org.lobobrowser.js
Class JavaObjectWrapper
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.lobobrowser.js.JavaObjectWrapper
- All Implemented Interfaces:
Serializable
,org.mozilla.javascript.ConstProperties
,org.mozilla.javascript.debug.DebuggableObject
,org.mozilla.javascript.Scriptable
,org.mozilla.javascript.SymbolScriptable
public class JavaObjectWrapper
extends org.mozilla.javascript.ScriptableObject
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.ScriptableObject.KeyComparator
-
Field Summary
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
ConstructorsConstructorDescriptionJavaObjectWrapper
(JavaClassWrapper classWrapper) JavaObjectWrapper
(JavaClassWrapper classWrapper, Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionget
(int index, org.mozilla.javascript.Scriptable start) static org.mozilla.javascript.Function
getConstructor
(String className, JavaClassWrapper classWrapper, org.mozilla.javascript.Scriptable scope) static org.mozilla.javascript.Function
getConstructor
(String className, JavaClassWrapper classWrapper, org.mozilla.javascript.Scriptable scope, JavaInstantiator instantiator) getDefaultValue
(Class hint) Returns the Java object.void
void
toString()
Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
Constructor Details
-
JavaObjectWrapper
public JavaObjectWrapper(JavaClassWrapper classWrapper) throws InstantiationException, IllegalAccessException -
JavaObjectWrapper
-
-
Method Details
-
getJavaObject
Returns the Java object.- Returns:
- An object or
null
if garbage collected.
-
getClassName
- Specified by:
getClassName
in interfaceorg.mozilla.javascript.Scriptable
- Specified by:
getClassName
in classorg.mozilla.javascript.ScriptableObject
-
get
- Specified by:
get
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
get
in classorg.mozilla.javascript.ScriptableObject
-
get
- Specified by:
get
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
get
in classorg.mozilla.javascript.ScriptableObject
-
put
- Specified by:
put
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
put
in classorg.mozilla.javascript.ScriptableObject
-
put
- Specified by:
put
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
put
in classorg.mozilla.javascript.ScriptableObject
-
getConstructor
public static org.mozilla.javascript.Function getConstructor(String className, JavaClassWrapper classWrapper, org.mozilla.javascript.Scriptable scope) -
getConstructor
public static org.mozilla.javascript.Function getConstructor(String className, JavaClassWrapper classWrapper, org.mozilla.javascript.Scriptable scope, JavaInstantiator instantiator) -
getDefaultValue
- Specified by:
getDefaultValue
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
getDefaultValue
in classorg.mozilla.javascript.ScriptableObject
-
toString
-