|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.apache.sling.scripting.javascript.wrapper.ScriptableBase
org.apache.sling.scripting.javascript.wrapper.ScriptableCalendar
public class ScriptableCalendar
| Field Summary | |
|---|---|
static String |
CLASSNAME
|
static Class<?>[] |
WRAPPED_CLASSES
Calendar is a class, not an interface - so we need to enumerate possible implementations here |
| 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 | |
|---|---|
ScriptableCalendar()
|
|
| Method Summary | |
|---|---|
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)
|
Class<?> |
jsGet_javascriptWrapperClass()
Used in testing, to check that the right wrapper is used. |
String |
toString()
|
Object |
unwrap()
|
| 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 Detail |
|---|
public static final String CLASSNAME
public static final Class<?>[] WRAPPED_CLASSES
| Constructor Detail |
|---|
public ScriptableCalendar()
| Method Detail |
|---|
public Class<?>[] getWrappedClasses()
SlingWrapper
getWrappedClasses in interface SlingWrapperpublic void jsConstructor(Object o)
public Object get(String name,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectprotected Class<?> getStaticType()
getStaticType in class ScriptableBaseprotected Object getWrappedObject()
getWrappedObject in class ScriptableBasepublic Class<?> jsGet_javascriptWrapperClass()
ScriptableBase
jsGet_javascriptWrapperClass in class ScriptableBasepublic String getClassName()
SlingWrapper
getClassName in interface SlingWrappergetClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic String toString()
toString in class Objectpublic Object unwrap()
unwrap in interface org.mozilla.javascript.Wrapperpublic Object getDefaultValue(Class typeHint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||