Package org.lobobrowser.js
Class JavaConstructorObject
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.lobobrowser.js.JavaConstructorObject
-
- All Implemented Interfaces:
java.io.Serializable,org.mozilla.javascript.Callable,org.mozilla.javascript.ConstProperties,org.mozilla.javascript.debug.DebuggableObject,org.mozilla.javascript.Function,org.mozilla.javascript.Scriptable,org.mozilla.javascript.SymbolScriptable
public class JavaConstructorObject extends org.mozilla.javascript.ScriptableObject implements org.mozilla.javascript.Function- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaConstructorObject.SimpleInstantiator
-
Constructor Summary
Constructors Constructor Description JavaConstructorObject(java.lang.String name, JavaClassWrapper classWrapper)JavaConstructorObject(java.lang.String name, JavaClassWrapper classWrapper, JavaInstantiator instantiator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcall(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)org.mozilla.javascript.Scriptableconstruct(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object[] args)java.lang.StringgetClassName()java.lang.ObjectgetDefaultValue(java.lang.Class hint)-
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, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
-
-
-
Constructor Detail
-
JavaConstructorObject
public JavaConstructorObject(java.lang.String name, JavaClassWrapper classWrapper)
-
JavaConstructorObject
public JavaConstructorObject(java.lang.String name, JavaClassWrapper classWrapper, JavaInstantiator instantiator)
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
- Specified by:
getClassNamein interfaceorg.mozilla.javascript.Scriptable- Specified by:
getClassNamein classorg.mozilla.javascript.ScriptableObject
-
call
public java.lang.Object call(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)- Specified by:
callin interfaceorg.mozilla.javascript.Callable- Specified by:
callin interfaceorg.mozilla.javascript.Function
-
construct
public org.mozilla.javascript.Scriptable construct(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object[] args)- Specified by:
constructin interfaceorg.mozilla.javascript.Function
-
getDefaultValue
public java.lang.Object getDefaultValue(java.lang.Class hint)
- Specified by:
getDefaultValuein interfaceorg.mozilla.javascript.Scriptable- Overrides:
getDefaultValuein classorg.mozilla.javascript.ScriptableObject
-
-