org.mozilla.javascript.xmlimpl
Class XML
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.xml.XMLObject
org.mozilla.javascript.xmlimpl.XML
- All Implemented Interfaces:
- Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.IdFunctionCall, org.mozilla.javascript.Scriptable
public class XML
- extends org.mozilla.javascript.xml.XMLObject
- See Also:
- Serialized Form
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 |
Method Summary |
Object |
addValues(org.mozilla.javascript.Context cx,
boolean thisIsLeft,
Object value)
|
void |
delete(int index)
|
void |
delete(String name)
|
boolean |
ecmaDelete(org.mozilla.javascript.Context cx,
Object id)
Implementation of ECMAScript [[Delete]]. |
Object |
ecmaGet(org.mozilla.javascript.Context cx,
Object id)
Implementation of ECMAScript [[Get]] |
boolean |
ecmaHas(org.mozilla.javascript.Context cx,
Object id)
Implementation of ECMAScript [[Has]]. |
void |
ecmaPut(org.mozilla.javascript.Context cx,
Object id,
Object value)
Implementation of ECMAScript [[Put]]. |
org.mozilla.javascript.NativeWith |
enterDotQuery(org.mozilla.javascript.Scriptable scope)
|
org.mozilla.javascript.NativeWith |
enterWith(org.mozilla.javascript.Scriptable scope)
|
protected Object |
equivalentValues(Object value)
|
Object |
execIdCall(org.mozilla.javascript.IdFunctionObject f,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args)
|
protected int |
findPrototypeId(String s)
|
Object |
get(int index,
org.mozilla.javascript.Scriptable start)
|
org.apache.axiom.om.OMNode |
getAxiomFromXML()
|
String |
getClassName()
|
Object |
getDefaultValue(Class hint)
|
org.mozilla.javascript.Scriptable |
getExtraMethodSource(org.mozilla.javascript.Context cx)
|
boolean |
has(int index,
org.mozilla.javascript.Scriptable start)
|
protected void |
initPrototypeId(int id)
|
XML |
insertChild(AxiomNode refNode,
Object value,
int mode)
Insert the value according to the refNode and mode
If refNode is null then append or prepend the value based on the mode
If refNode is not null then insert value after or before the refNode based on the mode |
protected Object |
jsConstructor(org.mozilla.javascript.Context cx,
boolean inNewExpr,
Object[] args)
|
org.mozilla.javascript.Ref |
memberRef(org.mozilla.javascript.Context cx,
Object elem,
int memberTypeFlags)
|
org.mozilla.javascript.Ref |
memberRef(org.mozilla.javascript.Context cx,
Object namespace,
Object elem,
int memberTypeFlags)
|
void |
put(int index,
org.mozilla.javascript.Scriptable start,
Object value)
|
protected void |
removeChild(AxiomNode axiomNode)
|
void |
replaceAll(XML targetXML)
|
String |
toString()
|
Methods inherited from class org.mozilla.javascript.IdScriptableObject |
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, get, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdValue |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
f
public int f
lib
protected final XMLLibImpl lib
prototypeFlag
protected boolean prototypeFlag
jsConstructor
protected Object jsConstructor(org.mozilla.javascript.Context cx,
boolean inNewExpr,
Object[] args)
getExtraMethodSource
public org.mozilla.javascript.Scriptable getExtraMethodSource(org.mozilla.javascript.Context cx)
- Specified by:
getExtraMethodSource
in class org.mozilla.javascript.xml.XMLObject
getClassName
public String getClassName()
- Specified by:
getClassName
in interface org.mozilla.javascript.Scriptable
- Specified by:
getClassName
in class org.mozilla.javascript.ScriptableObject
get
public Object get(int index,
org.mozilla.javascript.Scriptable start)
- Specified by:
get
in interface org.mozilla.javascript.Scriptable
- Overrides:
get
in class org.mozilla.javascript.ScriptableObject
has
public boolean has(int index,
org.mozilla.javascript.Scriptable start)
- Specified by:
has
in interface org.mozilla.javascript.Scriptable
- Overrides:
has
in class org.mozilla.javascript.ScriptableObject
put
public void put(int index,
org.mozilla.javascript.Scriptable start,
Object value)
- Specified by:
put
in interface org.mozilla.javascript.Scriptable
- Overrides:
put
in class org.mozilla.javascript.ScriptableObject
delete
public void delete(int index)
- Specified by:
delete
in interface org.mozilla.javascript.Scriptable
- Overrides:
delete
in class org.mozilla.javascript.ScriptableObject
toString
public String toString()
removeChild
protected void removeChild(AxiomNode axiomNode)
getAxiomFromXML
public org.apache.axiom.om.OMNode getAxiomFromXML()
insertChild
public XML insertChild(AxiomNode refNode,
Object value,
int mode)
- Insert the value according to the refNode and mode
If refNode is null then append or prepend the value based on the mode
If refNode is not null then insert value after or before the refNode based on the mode
- Parameters:
refNode
- value
- mode
- represent APPEND or PREPEND
- Returns:
- XML
replaceAll
public void replaceAll(XML targetXML)
initPrototypeId
protected void initPrototypeId(int id)
- Overrides:
initPrototypeId
in class org.mozilla.javascript.IdScriptableObject
findPrototypeId
protected int findPrototypeId(String s)
- Overrides:
findPrototypeId
in class org.mozilla.javascript.IdScriptableObject
execIdCall
public Object execIdCall(org.mozilla.javascript.IdFunctionObject f,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args)
- Specified by:
execIdCall
in interface org.mozilla.javascript.IdFunctionCall
- Overrides:
execIdCall
in class org.mozilla.javascript.IdScriptableObject
delete
public void delete(String name)
- Specified by:
delete
in interface org.mozilla.javascript.Scriptable
- Overrides:
delete
in class org.mozilla.javascript.IdScriptableObject
addValues
public final Object addValues(org.mozilla.javascript.Context cx,
boolean thisIsLeft,
Object value)
- Overrides:
addValues
in class org.mozilla.javascript.xml.XMLObject
getDefaultValue
public final Object getDefaultValue(Class hint)
- Specified by:
getDefaultValue
in interface org.mozilla.javascript.Scriptable
- Overrides:
getDefaultValue
in class org.mozilla.javascript.ScriptableObject
equivalentValues
protected final Object equivalentValues(Object value)
- Overrides:
equivalentValues
in class org.mozilla.javascript.ScriptableObject
ecmaDelete
public final boolean ecmaDelete(org.mozilla.javascript.Context cx,
Object id)
- Implementation of ECMAScript [[Delete]].
- Specified by:
ecmaDelete
in class org.mozilla.javascript.xml.XMLObject
ecmaHas
public final boolean ecmaHas(org.mozilla.javascript.Context cx,
Object id)
- Implementation of ECMAScript [[Has]].
- Specified by:
ecmaHas
in class org.mozilla.javascript.xml.XMLObject
ecmaGet
public final Object ecmaGet(org.mozilla.javascript.Context cx,
Object id)
- Implementation of ECMAScript [[Get]]
- Specified by:
ecmaGet
in class org.mozilla.javascript.xml.XMLObject
ecmaPut
public final void ecmaPut(org.mozilla.javascript.Context cx,
Object id,
Object value)
- Implementation of ECMAScript [[Put]].
- Specified by:
ecmaPut
in class org.mozilla.javascript.xml.XMLObject
enterWith
public org.mozilla.javascript.NativeWith enterWith(org.mozilla.javascript.Scriptable scope)
- Specified by:
enterWith
in class org.mozilla.javascript.xml.XMLObject
enterDotQuery
public org.mozilla.javascript.NativeWith enterDotQuery(org.mozilla.javascript.Scriptable scope)
- Specified by:
enterDotQuery
in class org.mozilla.javascript.xml.XMLObject
memberRef
public org.mozilla.javascript.Ref memberRef(org.mozilla.javascript.Context cx,
Object elem,
int memberTypeFlags)
- Specified by:
memberRef
in class org.mozilla.javascript.xml.XMLObject
memberRef
public org.mozilla.javascript.Ref memberRef(org.mozilla.javascript.Context cx,
Object namespace,
Object elem,
int memberTypeFlags)
- Specified by:
memberRef
in class org.mozilla.javascript.xml.XMLObject
Copyright © 2012 WSO2. All Rights Reserved.