Class ScriptableCalendar

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CLASSNAME  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object get​(String name, org.mozilla.javascript.Scriptable start)  
      String getClassName()
      The name of the JavaScript host object "class".
      Object getDefaultValue​(Class typeHint)  
      protected Class<?> getStaticType()  
      Class<?>[] getWrappedClasses()
      The list of Java classes wrapped by this wrapper.
      protected Object getWrappedObject()  
      void jsConstructor​(Object o)  
      String toString()  
      Object unwrap()  
      • 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
    • Constructor Detail

      • ScriptableCalendar

        public ScriptableCalendar()
    • Method Detail

      • getWrappedClasses

        public Class<?>[] getWrappedClasses()
        Description copied from interface: SlingWrapper
        The list of Java classes wrapped by this wrapper.
        Specified by:
        getWrappedClasses in interface SlingWrapper
        Returns:
        the wrapped classes
      • jsConstructor

        public void jsConstructor​(Object o)
      • get

        public Object get​(String name,
                          org.mozilla.javascript.Scriptable start)
        Specified by:
        get in interface org.mozilla.javascript.Scriptable
        Overrides:
        get in class org.mozilla.javascript.ScriptableObject
      • getStaticType

        protected Class<?> getStaticType()
        Specified by:
        getStaticType in class ScriptableBase
        Returns:
        the static type to use for NativeJavaObject wrapping
      • getWrappedObject

        protected Object getWrappedObject()
        Specified by:
        getWrappedObject in class ScriptableBase
        Returns:
        the Java object that we're wrapping, used to create a NativeJavaObject instance for default wrapping.
      • getClassName

        public String getClassName()
        Description copied from interface: SlingWrapper
        The name of the JavaScript host object "class".
        Specified by:
        getClassName in interface org.mozilla.javascript.Scriptable
        Specified by:
        getClassName in interface SlingWrapper
        Specified by:
        getClassName in class org.mozilla.javascript.ScriptableObject
        Returns:
        the class name
      • unwrap

        public Object unwrap()
        Specified by:
        unwrap in interface org.mozilla.javascript.Wrapper
      • getDefaultValue

        public Object getDefaultValue​(Class typeHint)
        Specified by:
        getDefaultValue in interface org.mozilla.javascript.Scriptable
        Overrides:
        getDefaultValue in class org.mozilla.javascript.ScriptableObject