public class ScriptableWrapper
extends org.mozilla.javascript.ScriptableObject
| Constructor and Description |
|---|
ScriptableWrapper(org.mozilla.javascript.Scriptable scope,
Object javaObject,
Class staticType)
Constructs a wrapper for the java object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int index,
org.mozilla.javascript.Scriptable start) |
Object |
get(String name,
org.mozilla.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,
org.mozilla.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
|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic Object get(String name, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectScriptableObject.get(java.lang.String, org.mozilla.javascript.Scriptable)public boolean has(String name, org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectScriptableObject.has(java.lang.String, org.mozilla.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, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectScriptableObject.get(int, org.mozilla.javascript.Scriptable)public Object getDefaultValue(Class hint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObjectScriptableObject.getDefaultValue(java.lang.Class)public String jsToString()
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectScriptableObject.getClassName()public Object getWrappedObject()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.