org.mozilla.javascript.xmlimpl
Class XMLList

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by org.mozilla.javascript.IdScriptableObject
          extended by org.mozilla.javascript.xml.XMLObject
              extended by org.mozilla.javascript.xmlimpl.XMLList
All Implemented Interfaces:
Serializable, org.mozilla.javascript.Callable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Function, org.mozilla.javascript.IdFunctionCall, org.mozilla.javascript.Scriptable

public class XMLList
extends org.mozilla.javascript.xml.XMLObject
implements org.mozilla.javascript.Function

See Also:
Serialized Form

Field Summary
 int f
           
protected  XMLLibImpl lib
           
protected  boolean prototypeFlag
           
 
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
XMLList(XMLLibImpl lib)
           
XMLList(XMLLibImpl lib, List axiomNodeList)
           
 
Method Summary
 void addAxiomNode(AxiomNode axiomNode)
           
 Object addValues(org.mozilla.javascript.Context cx, boolean thisIsLeft, Object value)
           
 Object call(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args)
           
 org.mozilla.javascript.Scriptable construct(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, Object[] args)
           
 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)
           
 Object[] getIds()
           
 boolean has(int index, org.mozilla.javascript.Scriptable start)
           
protected  void initPrototypeId(int id)
           
protected  Object jsConstructor(org.mozilla.javascript.Context cx, boolean inNewExpr, Object[] args)
           
 int length()
           
 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)
           
 void setTargets(org.mozilla.javascript.xmlimpl.XMLObjectImpl targetObject, javax.xml.namespace.QName targetProperty)
           
 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, 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
 
Methods inherited from interface org.mozilla.javascript.Scriptable
delete, get, getDefaultValue, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype
 

Field Detail

f

public int f

lib

protected final XMLLibImpl lib

prototypeFlag

protected boolean prototypeFlag
Constructor Detail

XMLList

public XMLList(XMLLibImpl lib)

XMLList

public XMLList(XMLLibImpl lib,
               List axiomNodeList)
Method Detail

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

delete

public void delete(int index)
Specified by:
delete in interface org.mozilla.javascript.Scriptable
Overrides:
delete 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

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

getIds

public Object[] getIds()
Specified by:
getIds in interface org.mozilla.javascript.Scriptable
Overrides:
getIds in class org.mozilla.javascript.ScriptableObject

call

public Object call(org.mozilla.javascript.Context cx,
                   org.mozilla.javascript.Scriptable scope,
                   org.mozilla.javascript.Scriptable thisObj,
                   Object[] args)
Specified by:
call in interface org.mozilla.javascript.Callable
Specified by:
call in interface org.mozilla.javascript.Function

construct

public org.mozilla.javascript.Scriptable construct(org.mozilla.javascript.Context cx,
                                                   org.mozilla.javascript.Scriptable scope,
                                                   Object[] args)
Specified by:
construct in interface org.mozilla.javascript.Function

jsConstructor

protected Object jsConstructor(org.mozilla.javascript.Context cx,
                               boolean inNewExpr,
                               Object[] args)

length

public int length()

toString

public String toString()

addAxiomNode

public void addAxiomNode(AxiomNode axiomNode)

setTargets

public void setTargets(org.mozilla.javascript.xmlimpl.XMLObjectImpl targetObject,
                       javax.xml.namespace.QName targetProperty)

getAxiomFromXML

public org.apache.axiom.om.OMNode getAxiomFromXML()

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.