public class ScriptableWrapper
extends net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
| Constructor and Description |
|---|
ScriptableWrapper(net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
Object javaObject,
Class<?> staticType)
Constructs a wrapper for the java object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
Object |
get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
String |
getClassName() |
Object |
getDefaultValue(Class<?> hint) |
Object |
getWrappedObject()
Gets the java object made availabe to JavaScript through this wrapper.
|
boolean |
has(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
protected Object |
invoke(Method method)
Invokes the method on the wrapped object.
|
protected Object |
invoke(Method method,
Object[] args)
Invokes the method on the wrapped object.
|
String |
jsToString()
To use as "toString" function in JavaScript.
|
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, 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, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic ScriptableWrapper(net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
Object javaObject,
Class<?> staticType)
scope - the scope of the executing scriptjavaObject - the javaObject to wrapstaticType - the static type of the objectpublic Object get(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectScriptableObject.get(java.lang.String,net.sourceforge.htmlunit.corejs.javascript.Scriptable)public boolean has(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
has in interface net.sourceforge.htmlunit.corejs.javascript.Scriptablehas in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectScriptableObject.has(java.lang.String, net.sourceforge.htmlunit.corejs.javascript.Scriptable)protected Object invoke(Method method)
method - the method to invokeprotected Object invoke(Method method, Object[] args)
method - the method to invokeargs - the argument to pass to the methodpublic Object get(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectScriptableObject.get(int, net.sourceforge.htmlunit.corejs.javascript.Scriptable)public Object getDefaultValue(Class<?> hint)
getDefaultValue in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectScriptableObject.getDefaultValue(java.lang.Class)public String jsToString()
public String getClassName()
getClassName in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetClassName in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectScriptableObject.getClassName()public Object getWrappedObject()
Copyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.