|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mozilla.javascript.ScriptableObject org.apache.sling.scripting.javascript.wrapper.ScriptableBase
public abstract class ScriptableBase
Base class for Scriptable objects, uses the NativeJavaObject wrapper to provide default wrapping of methods and properties (SLING-397)
Field Summary | |
---|---|
static java.lang.String |
JSFUNC_PREFIX
|
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 | |
---|---|
ScriptableBase()
|
Method Summary | |
---|---|
protected java.lang.Object |
getNative(java.lang.String name,
org.mozilla.javascript.Scriptable start)
|
protected abstract java.lang.Class<?> |
getStaticType()
|
protected abstract java.lang.Object |
getWrappedObject()
|
abstract java.lang.Class<?> |
jsGet_javascriptWrapperClass()
Used in testing, to check that the right wrapper is used. |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JSFUNC_PREFIX
Constructor Detail |
---|
public ScriptableBase()
Method Detail |
---|
protected java.lang.Object getNative(java.lang.String name, org.mozilla.javascript.Scriptable start)
protected abstract java.lang.Object getWrappedObject()
protected abstract java.lang.Class<?> getStaticType()
public abstract java.lang.Class<?> jsGet_javascriptWrapperClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |