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:
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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase

    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String name, org.mozilla.javascript.Scriptable start)
     
    The name of the JavaScript host object "class".
     
    protected Class<?>
     
    Class<?>[]
    The list of Java classes wrapped by this wrapper.
    protected Object
     
    void
     
     
     

    Methods inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase

    getNative

    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, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, 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, wait, wait, wait
  • Field Details

  • Constructor Details

    • ScriptableCalendar

      public ScriptableCalendar()
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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