|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mozilla.javascript.ScriptableObject org.apache.sling.scripting.javascript.wrapper.ScriptableBase org.apache.sling.scripting.javascript.wrapper.ScriptableProperty
public class ScriptableProperty
Wrap a JCR Property as a Scriptable
Field Summary | |
---|---|
static String |
CLASSNAME
|
static Class<?>[] |
WRAPPED_CLASSES
|
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 | |
---|---|
ScriptableProperty()
|
Method Summary | |
---|---|
Object |
get(String name,
org.mozilla.javascript.Scriptable start)
|
String |
getClassName()
The name of the JavaScript host object "class" |
protected Class<?> |
getStaticType()
|
int |
getType()
|
Class<?>[] |
getWrappedClasses()
The list of Java classes wrapped by this wrapper |
protected Object |
getWrappedObject()
|
void |
jsConstructor(Object res)
|
Object |
jsFunction_toString()
|
Object |
jsFunction_valueOf(String hint)
|
Object |
jsGet_boolean()
|
Object |
jsGet_date()
|
Object |
jsGet_definition()
|
int |
jsGet_depth()
|
Object |
jsGet_double()
|
Class<?> |
jsGet_javascriptWrapperClass()
Used in testing, to check that the right wrapper is used. |
Object |
jsGet_length()
|
long[] |
jsGet_lengths()
|
Object |
jsGet_long()
|
boolean |
jsGet_modified()
|
String |
jsGet_name()
|
boolean |
jsGet_new()
|
Object |
jsGet_node()
|
Object |
jsGet_parent()
|
String |
jsGet_path()
|
Object |
jsGet_session()
|
Object |
jsGet_stream()
|
Object |
jsGet_string()
|
Object |
jsGet_value()
|
Object |
jsGet_values()
|
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, 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 ScriptableProperty()
Method Detail |
---|
public void jsConstructor(Object res)
public String getClassName()
SlingWrapper
getClassName
in interface SlingWrapper
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public Class<?>[] getWrappedClasses()
SlingWrapper
getWrappedClasses
in interface SlingWrapper
public Object jsGet_value()
public Object jsGet_values()
public Object jsGet_string()
public Object jsGet_stream()
public Object jsGet_long()
public Object jsGet_double()
public Object jsGet_date()
public Object jsGet_boolean()
public Object jsGet_node()
public Object jsGet_length()
public long[] jsGet_lengths()
public Object jsGet_definition()
public int getType()
public Object jsGet_session()
public String jsGet_path()
public String jsGet_name()
public Object jsGet_parent()
public int jsGet_depth()
public boolean jsGet_new()
public boolean jsGet_modified()
public Class<?> jsGet_javascriptWrapperClass()
ScriptableBase
jsGet_javascriptWrapperClass
in class ScriptableBase
public Object jsFunction_valueOf(String hint)
public Object get(String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public Object jsFunction_toString()
public String toString()
toString
in class Object
public Object unwrap()
unwrap
in interface org.mozilla.javascript.Wrapper
protected Class<?> getStaticType()
getStaticType
in class ScriptableBase
protected Object getWrappedObject()
getWrappedObject
in class ScriptableBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |