Class ScriptableBase
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.apache.sling.scripting.javascript.wrapper.ScriptableBase
-
- All Implemented Interfaces:
java.io.Serializable
,org.mozilla.javascript.ConstProperties
,org.mozilla.javascript.debug.DebuggableObject
,org.mozilla.javascript.Scriptable
- Direct Known Subclasses:
ScriptableCalendar
,ScriptableMap
,ScriptableNode
,ScriptableProperty
public abstract class ScriptableBase extends org.mozilla.javascript.ScriptableObject
Base class for Scriptable objects, uses the NativeJavaObject wrapper to provide default wrapping of methods and properties (SLING-397)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JSFUNC_PREFIX
-
Constructor Summary
Constructors Constructor Description ScriptableBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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()
-
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, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
-
-
-
Field Detail
-
JSFUNC_PREFIX
public static final java.lang.String JSFUNC_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNative
protected java.lang.Object getNative(java.lang.String name, org.mozilla.javascript.Scriptable start)
-
getWrappedObject
protected abstract java.lang.Object getWrappedObject()
- Returns:
- the Java object that we're wrapping, used to create a NativeJavaObject instance for default wrapping.
-
getStaticType
protected abstract java.lang.Class<?> getStaticType()
- Returns:
- the static type to use for NativeJavaObject wrapping
-
-