org.wso2.javascript.xmlimpl
Class XML
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.xml.XMLObject
org.wso2.javascript.xmlimpl.XML
- All Implemented Interfaces:
- java.io.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 |
java.lang.Object |
addValues(org.mozilla.javascript.Context cx,
boolean thisIsLeft,
java.lang.Object value)
|
void |
delete(int index)
|
void |
delete(java.lang.String name)
|
boolean |
ecmaDelete(org.mozilla.javascript.Context cx,
java.lang.Object id)
Implementation of ECMAScript [[Delete]]. |
java.lang.Object |
ecmaGet(org.mozilla.javascript.Context cx,
java.lang.Object id)
Implementation of ECMAScript [[Get]] |
boolean |
ecmaHas(org.mozilla.javascript.Context cx,
java.lang.Object id)
Implementation of ECMAScript [[Has]]. |
void |
ecmaPut(org.mozilla.javascript.Context cx,
java.lang.Object id,
java.lang.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 java.lang.Object |
equivalentValues(java.lang.Object value)
|
java.lang.Object |
execIdCall(org.mozilla.javascript.IdFunctionObject f,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args)
|
protected int |
findPrototypeId(java.lang.String s)
|
java.lang.Object |
get(int index,
org.mozilla.javascript.Scriptable start)
|
org.apache.axiom.om.OMNode |
getAxiomFromXML()
|
java.lang.String |
getClassName()
|
java.lang.Object |
getDefaultValue(java.lang.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,
java.lang.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 java.lang.Object |
jsConstructor(org.mozilla.javascript.Context cx,
boolean inNewExpr,
java.lang.Object[] args)
|
org.mozilla.javascript.Ref |
memberRef(org.mozilla.javascript.Context cx,
java.lang.Object elem,
int memberTypeFlags)
|
org.mozilla.javascript.Ref |
memberRef(org.mozilla.javascript.Context cx,
java.lang.Object namespace,
java.lang.Object elem,
int memberTypeFlags)
|
void |
put(int index,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
|
protected void |
removeChild(AxiomNode axiomNode)
|
void |
replaceAll(XML targetXML)
|
java.lang.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
f
public int f
lib
protected final XMLLibImpl lib
prototypeFlag
protected boolean prototypeFlag
jsConstructor
protected java.lang.Object jsConstructor(org.mozilla.javascript.Context cx,
boolean inNewExpr,
java.lang.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 java.lang.String getClassName()
- Specified by:
getClassName in interface org.mozilla.javascript.Scriptable- Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject
get
public java.lang.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,
java.lang.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 java.lang.String toString()
removeChild
protected void removeChild(AxiomNode axiomNode)
getAxiomFromXML
public org.apache.axiom.om.OMNode getAxiomFromXML()
insertChild
public XML insertChild(AxiomNode refNode,
java.lang.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(java.lang.String s)
- Overrides:
findPrototypeId in class org.mozilla.javascript.IdScriptableObject
execIdCall
public java.lang.Object execIdCall(org.mozilla.javascript.IdFunctionObject f,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args)
- Specified by:
execIdCall in interface org.mozilla.javascript.IdFunctionCall- Overrides:
execIdCall in class org.mozilla.javascript.IdScriptableObject
delete
public void delete(java.lang.String name)
- Specified by:
delete in interface org.mozilla.javascript.Scriptable- Overrides:
delete in class org.mozilla.javascript.IdScriptableObject
addValues
public final java.lang.Object addValues(org.mozilla.javascript.Context cx,
boolean thisIsLeft,
java.lang.Object value)
- Overrides:
addValues in class org.mozilla.javascript.xml.XMLObject
getDefaultValue
public final java.lang.Object getDefaultValue(java.lang.Class hint)
- Specified by:
getDefaultValue in interface org.mozilla.javascript.Scriptable- Overrides:
getDefaultValue in class org.mozilla.javascript.ScriptableObject
equivalentValues
protected final java.lang.Object equivalentValues(java.lang.Object value)
- Overrides:
equivalentValues in class org.mozilla.javascript.ScriptableObject
ecmaDelete
public final boolean ecmaDelete(org.mozilla.javascript.Context cx,
java.lang.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,
java.lang.Object id)
- Implementation of ECMAScript [[Has]].
- Specified by:
ecmaHas in class org.mozilla.javascript.xml.XMLObject
ecmaGet
public final java.lang.Object ecmaGet(org.mozilla.javascript.Context cx,
java.lang.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,
java.lang.Object id,
java.lang.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,
java.lang.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,
java.lang.Object namespace,
java.lang.Object elem,
int memberTypeFlags)
- Specified by:
memberRef in class org.mozilla.javascript.xml.XMLObject
Copyright © 2009 WSO2. All Rights Reserved.