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:
- java.io.Serializable,- ConstProperties,- DebuggableObject,- IdFunctionCall,- Scriptable,- SymbolScriptable
 
 public abstract class XMLObject extends IdScriptableObject This Interface describes what all XML objects (XML, XMLList) should have in common.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObjectScriptableObject.KeyComparator
 
- 
 - 
Field Summary- 
Fields inherited from class org.mozilla.javascript.ScriptableObjectCONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 - 
Fields inherited from interface org.mozilla.javascript.ScriptableNOT_FOUND
 
- 
 - 
Constructor SummaryConstructors Constructor Description XMLObject()XMLObject(Scriptable scope, Scriptable prototype)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectaddValues(Context cx, boolean thisIsLeft, java.lang.Object value)Custom+operator.abstract booleandelete(Context cx, java.lang.Object id)Implementation of ECMAScript [[Delete]].abstract NativeWithenterDotQuery(Scriptable scope)Wrap this object into NativeWith to implement the .() query.abstract NativeWithenterWith(Scriptable scope)Wrap this object into NativeWith to implement the with statement.abstract java.lang.Objectget(Context cx, java.lang.Object id)Implementation of ECMAScript [[Get]].abstract ScriptablegetExtraMethodSource(Context cx)Return an additional object to look for methods that runtime should consider during method search.abstract java.lang.ObjectgetFunctionProperty(Context cx, int id)abstract java.lang.ObjectgetFunctionProperty(Context cx, java.lang.String name)java.lang.StringgetTypeOf()Gets the value returned by calling the typeof operator on this object.abstract booleanhas(Context cx, java.lang.Object id)Implementation of ECMAScript [[Has]].abstract RefmemberRef(Context cx, java.lang.Object elem, int memberTypeFlags)Generic reference to implement x.@y, x..y etc.abstract RefmemberRef(Context cx, java.lang.Object namespace, java.lang.Object elem, int memberTypeFlags)Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.abstract voidput(Context cx, java.lang.Object id, java.lang.Object value)Implementation of ECMAScript [[Put]].- 
Methods inherited from class org.mozilla.javascript.IdScriptableObjectactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, 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.ScriptableObjectapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, 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 Detail- 
XMLObjectpublic XMLObject() 
 - 
XMLObjectpublic XMLObject(Scriptable scope, Scriptable prototype) 
 
- 
 - 
Method Detail- 
haspublic abstract boolean has(Context cx, java.lang.Object id) Implementation of ECMAScript [[Has]].
 - 
getpublic abstract java.lang.Object get(Context cx, java.lang.Object id) Implementation of ECMAScript [[Get]].
 - 
putpublic abstract void put(Context cx, java.lang.Object id, java.lang.Object value) Implementation of ECMAScript [[Put]].
 - 
deletepublic abstract boolean delete(Context cx, java.lang.Object id) Implementation of ECMAScript [[Delete]].
 - 
getFunctionPropertypublic abstract java.lang.Object getFunctionProperty(Context cx, java.lang.String name) 
 - 
getFunctionPropertypublic abstract java.lang.Object getFunctionProperty(Context cx, int id) 
 - 
getExtraMethodSourcepublic abstract Scriptable getExtraMethodSource(Context cx) Return an additional object to look for methods that runtime should consider during method search. Return null if no such object available.
 - 
memberRefpublic abstract Ref memberRef(Context cx, java.lang.Object elem, int memberTypeFlags) Generic reference to implement x.@y, x..y etc.
 - 
memberRefpublic abstract Ref memberRef(Context cx, java.lang.Object namespace, java.lang.Object elem, int memberTypeFlags) Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
 - 
enterWithpublic abstract NativeWith enterWith(Scriptable scope) Wrap this object into NativeWith to implement the with statement.
 - 
enterDotQuerypublic abstract NativeWith enterDotQuery(Scriptable scope) Wrap this object into NativeWith to implement the .() query.
 - 
addValuespublic java.lang.Object addValues(Context cx, boolean thisIsLeft, java.lang.Object value) Custom+operator. Should returnScriptable.NOT_FOUNDif 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_FOUNDto 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.
 
 - 
getTypeOfpublic java.lang.String getTypeOf() Gets the value returned by calling the typeof operator on this object.- Overrides:
- getTypeOfin class- ScriptableObject
- Returns:
- "xml" or "undefined" if ScriptableObject.avoidObjectDetection()returnstrue
- See Also:
- ScriptableObject.getTypeOf()
 
 
- 
 
-