public abstract class XMLObject extends IdScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
XMLObject() |
XMLObject(Scriptable scope,
Scriptable prototype) |
Modifier and Type | Method and Description |
---|---|
Object |
addValues(Context cx,
boolean thisIsLeft,
Object value)
Custom + operator.
|
abstract boolean |
ecmaDelete(Context cx,
Object id)
Implementation of ECMAScript [[Delete]].
|
abstract Object |
ecmaGet(Context cx,
Object id)
Implementation of ECMAScript [[Get]].
|
abstract boolean |
ecmaHas(Context cx,
Object id)
Implementation of ECMAScript [[Has]].
|
abstract void |
ecmaPut(Context cx,
Object id,
Object value)
Implementation of ECMAScript [[Put]].
|
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 Scriptable |
getExtraMethodSource(Context cx)
Return an additional object to look for methods that runtime should
consider during method search.
|
String |
getTypeOf()
Gets the value returned by calling the typeof operator on this object.
|
abstract Ref |
memberRef(Context cx,
Object elem,
int memberTypeFlags)
Generic reference to implement x.@y, x..y etc.
|
abstract Ref |
memberRef(Context cx,
Object namespace,
Object elem,
int memberTypeFlags)
Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
|
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, defineOwnProperty, delete, execIdCall, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, get, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeId, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdValue
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
public XMLObject()
public XMLObject(Scriptable scope, Scriptable prototype)
public abstract boolean ecmaHas(Context cx, Object id)
public abstract void ecmaPut(Context cx, Object id, Object value)
public abstract boolean ecmaDelete(Context cx, Object id)
public abstract Scriptable getExtraMethodSource(Context cx)
public abstract Ref memberRef(Context cx, Object elem, int memberTypeFlags)
public abstract Ref memberRef(Context cx, Object namespace, Object elem, int memberTypeFlags)
public abstract NativeWith enterWith(Scriptable scope)
public abstract NativeWith enterDotQuery(Scriptable scope)
public Object addValues(Context cx, boolean thisIsLeft, Object value)
Scriptable.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.
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.public String getTypeOf()
getTypeOf
in class ScriptableObject
ScriptableObject.avoidObjectDetection()
returns true
ScriptableObject.getTypeOf()