public class ScriptableNode extends ScriptableBase implements SlingWrapper
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME |
JSFUNC_PREFIX| Constructor and Description |
|---|
ScriptableNode() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
Gets the value of a (Javascript) property or child node.
|
java.lang.String |
getClassName()
The name of the JavaScript host object "class".
|
java.lang.Object |
getDefaultValue(java.lang.Class typeHint) |
java.lang.Object[] |
getIds() |
protected java.lang.Class<?> |
getStaticType() |
java.lang.Class<?>[] |
getWrappedClasses()
The list of Java classes wrapped by this wrapper.
|
protected java.lang.Object |
getWrappedObject() |
boolean |
has(java.lang.String name,
org.mozilla.javascript.Scriptable start) |
void |
jsConstructor(java.lang.Object res) |
java.lang.Object |
jsFunction_addNode(java.lang.String path,
java.lang.String primaryType) |
java.lang.Object |
jsFunction_getBaseVersion() |
boolean |
jsFunction_getCheckedOut() |
java.lang.Object |
jsFunction_getChildren() |
java.lang.Object |
jsFunction_getDefinition() |
int |
jsFunction_getDepth() |
int |
jsFunction_getIndex() |
java.lang.Object |
jsFunction_getLock() |
boolean |
jsFunction_getLocked() |
javax.jcr.nodetype.NodeType[] |
jsFunction_getMixinNodeTypes() |
boolean |
jsFunction_getModified() |
java.lang.String |
jsFunction_getName() |
boolean |
jsFunction_getNew() |
java.lang.Object |
jsFunction_getNode(java.lang.String path) |
java.lang.Object |
jsFunction_getNodes(java.lang.String namePattern) |
java.lang.Object |
jsFunction_getParent() |
java.lang.String |
jsFunction_getPath() |
java.lang.Object |
jsFunction_getPrimaryItem() |
java.lang.Object |
jsFunction_getPrimaryNodeType() |
java.lang.Object |
jsFunction_getProperties() |
java.lang.Object |
jsFunction_getProperty(java.lang.String name) |
java.util.Iterator<?> |
jsFunction_getReferences() |
java.lang.Object |
jsFunction_getSession() |
java.lang.String |
jsFunction_getUUID() |
java.lang.Object |
jsFunction_getVersionHistory() |
boolean |
jsFunction_hasNode(java.lang.String path) |
void |
jsFunction_remove() |
java.lang.String |
toString() |
java.lang.Object |
unwrap() |
getNativeapplyDescriptorToAttributeBitset, 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, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, 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, sizepublic static final java.lang.String CLASSNAME
public void jsConstructor(java.lang.Object res)
public java.lang.String getClassName()
SlingWrappergetClassName in interface SlingWrappergetClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Class<?>[] getWrappedClasses()
SlingWrappergetWrappedClasses in interface SlingWrapperprotected java.lang.Class<?> getStaticType()
getStaticType in class ScriptableBaseprotected java.lang.Object getWrappedObject()
getWrappedObject in class ScriptableBasepublic java.lang.Object jsFunction_addNode(java.lang.String path,
java.lang.String primaryType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic java.lang.Object jsFunction_getNode(java.lang.String path)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic java.lang.Object jsFunction_getChildren()
public java.lang.Object jsFunction_getNodes(java.lang.String namePattern)
public java.lang.Object jsFunction_getProperties()
public java.lang.Object jsFunction_getPrimaryItem()
public java.lang.Object jsFunction_getProperty(java.lang.String name)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic java.lang.String jsFunction_getUUID()
public int jsFunction_getIndex()
public java.util.Iterator<?> jsFunction_getReferences()
public java.lang.Object jsFunction_getPrimaryNodeType()
public javax.jcr.nodetype.NodeType[] jsFunction_getMixinNodeTypes()
public java.lang.Object jsFunction_getDefinition()
public boolean jsFunction_getCheckedOut()
public java.lang.Object jsFunction_getVersionHistory()
public java.lang.Object jsFunction_getBaseVersion()
public java.lang.Object jsFunction_getLock()
public boolean jsFunction_getLocked()
public java.lang.Object jsFunction_getSession()
public java.lang.String jsFunction_getPath()
public java.lang.String jsFunction_getName()
public java.lang.Object jsFunction_getParent()
public int jsFunction_getDepth()
public boolean jsFunction_getNew()
public boolean jsFunction_getModified()
public void jsFunction_remove()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean jsFunction_hasNode(java.lang.String path)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic java.lang.Object get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Object[] getIds()
getIds in interface org.mozilla.javascript.ScriptablegetIds in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Object getDefaultValue(java.lang.Class typeHint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObjectpublic boolean has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object unwrap()
unwrap in interface org.mozilla.javascript.WrapperCopyright © 2018 The Apache Software Foundation. All rights reserved.