Class ScriptableCalendar
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.apache.sling.scripting.javascript.wrapper.ScriptableBase
-
- org.apache.sling.scripting.javascript.wrapper.ScriptableCalendar
-
- All Implemented Interfaces:
java.io.Serializable
,SlingWrapper
,org.mozilla.javascript.ConstProperties
,org.mozilla.javascript.debug.DebuggableObject
,org.mozilla.javascript.Scriptable
,org.mozilla.javascript.Wrapper
public class ScriptableCalendar extends ScriptableBase implements SlingWrapper
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASSNAME
-
Fields inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase
JSFUNC_PREFIX
-
-
Constructor Summary
Constructors Constructor Description ScriptableCalendar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String name, org.mozilla.javascript.Scriptable start)
java.lang.String
getClassName()
The name of the JavaScript host object "class".java.lang.Object
getDefaultValue(java.lang.Class typeHint)
protected java.lang.Class<?>
getStaticType()
java.lang.Class<?>[]
getWrappedClasses()
The list of Java classes wrapped by this wrapper.protected java.lang.Object
getWrappedObject()
void
jsConstructor(java.lang.Object o)
java.lang.String
toString()
java.lang.Object
unwrap()
-
Methods inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase
getNative
-
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, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, 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
-
CLASSNAME
public static final java.lang.String CLASSNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWrappedClasses
public java.lang.Class<?>[] getWrappedClasses()
Description copied from interface:SlingWrapper
The list of Java classes wrapped by this wrapper.- Specified by:
getWrappedClasses
in interfaceSlingWrapper
- Returns:
- the wrapped classes
-
jsConstructor
public void jsConstructor(java.lang.Object o)
-
get
public java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
- Specified by:
get
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
get
in classorg.mozilla.javascript.ScriptableObject
-
getStaticType
protected java.lang.Class<?> getStaticType()
- Specified by:
getStaticType
in classScriptableBase
- Returns:
- the static type to use for NativeJavaObject wrapping
-
getWrappedObject
protected java.lang.Object getWrappedObject()
- Specified by:
getWrappedObject
in classScriptableBase
- Returns:
- the Java object that we're wrapping, used to create a NativeJavaObject instance for default wrapping.
-
getClassName
public java.lang.String getClassName()
Description copied from interface:SlingWrapper
The name of the JavaScript host object "class".- Specified by:
getClassName
in interfaceorg.mozilla.javascript.Scriptable
- Specified by:
getClassName
in interfaceSlingWrapper
- Specified by:
getClassName
in classorg.mozilla.javascript.ScriptableObject
- Returns:
- the class name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
unwrap
public java.lang.Object unwrap()
- Specified by:
unwrap
in interfaceorg.mozilla.javascript.Wrapper
-
getDefaultValue
public java.lang.Object getDefaultValue(java.lang.Class typeHint)
- Specified by:
getDefaultValue
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
getDefaultValue
in classorg.mozilla.javascript.ScriptableObject
-
-