Package org.mozilla.javascript.xml
Class XMLObject
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.xml.XMLObject
- All Implemented Interfaces:
Serializable
,ConstProperties
,DebuggableObject
,IdFunctionCall
,Scriptable
,SymbolScriptable
This Interface describes what all XML objects (XML, XMLList) should have in common.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
ScriptableObject.KeyComparator
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionCustom+
operator.abstract boolean
Implementation of ECMAScript [[Delete]].abstract NativeWith
enterDotQuery
(Scriptable scope) Wrap this object into NativeWith to implement the .() query.abstract NativeWith
enterWith
(Scriptable scope) Wrap this object into NativeWith to implement the with statement.abstract Object
Implementation of ECMAScript [[Get]].abstract Scriptable
Return an additional object to look for methods that runtime should consider during method search.abstract Object
getFunctionProperty
(Context cx, int id) abstract Object
getFunctionProperty
(Context cx, String name) Gets the value returned by calling the typeof operator on this object.abstract boolean
Implementation of ECMAScript [[Has]].abstract Ref
Generic reference to implement x.abstract Ref
Generic reference to implement x::ns, x.abstract void
Implementation of ECMAScript [[Put]].Methods inherited from class org.mozilla.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, ensureType, ensureType, execIdCall, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findInstanceIdInfo, findPrototypeId, findPrototypeId, get, get, getAttributes, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeId, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributes, setInstanceIdAttributes, setInstanceIdValue
Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
Constructor Details
-
XMLObject
public XMLObject() -
XMLObject
-
-
Method Details
-
has
Implementation of ECMAScript [[Has]]. -
get
Implementation of ECMAScript [[Get]]. -
put
Implementation of ECMAScript [[Put]]. -
delete
Implementation of ECMAScript [[Delete]]. -
getFunctionProperty
-
getFunctionProperty
-
getExtraMethodSource
Return an additional object to look for methods that runtime should consider during method search. Return null if no such object available. -
memberRef
Generic reference to implement x.@y, x..y etc. -
memberRef
Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc. -
enterWith
Wrap this object into NativeWith to implement the with statement. -
enterDotQuery
Wrap this object into NativeWith to implement the .() query. -
addValues
Custom+
operator. Should returnScriptable.NOT_FOUND
if this object does not have custom addition operator for the given value, or the result of the addition operation.The default implementation returns
Scriptable.NOT_FOUND
to indicate no custom addition operation.- Parameters:
cx
- the Context object associated with the current thread.thisIsLeft
- if true, the object should calculate this + value if false, the object should calculate value + this.value
- the second argument for addition operation.
-
getTypeOf
Gets the value returned by calling the typeof operator on this object.- Overrides:
getTypeOf
in classScriptableObject
- Returns:
- "xml" or "undefined" if
ScriptableObject.avoidObjectDetection()
returnstrue
- See Also:
-