Package org.mozilla.javascript.xmlimpl
Class XMLObjectImpl
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.mozilla.javascript.IdScriptableObject
-
- org.mozilla.javascript.xml.XMLObject
-
- org.mozilla.javascript.xmlimpl.XMLObjectImpl
-
- All Implemented Interfaces:
java.io.Serializable,ConstProperties,DebuggableObject,IdFunctionCall,Scriptable,SymbolScriptable
abstract class XMLObjectImpl extends XMLObject
This abstract class describes what all XML objects (XML, XMLList) should have in common.- See Also:
XML
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
ScriptableObject.KeyComparator
-
-
Field Summary
Fields Modifier and Type Field Description private static intId_addNamespaceprivate static intId_appendChildprivate static intId_attributeprivate static intId_attributesprivate static intId_childprivate static intId_childIndexprivate static intId_childrenprivate static intId_commentsprivate static intId_constructorprivate static intId_containsprivate static intId_copyprivate static intId_descendantsprivate static intId_elementsprivate static intId_hasComplexContentprivate static intId_hasOwnPropertyprivate static intId_hasSimpleContentprivate static intId_inScopeNamespacesprivate static intId_insertChildAfterprivate static intId_insertChildBeforeprivate static intId_lengthprivate static intId_localNameprivate static intId_nameprivate static intId_namespaceprivate static intId_namespaceDeclarationsprivate static intId_nodeKindprivate static intId_normalizeprivate static intId_parentprivate static intId_prependChildprivate static intId_processingInstructionsprivate static intId_propertyIsEnumerableprivate static intId_removeNamespaceprivate static intId_replaceprivate static intId_setChildrenprivate static intId_setLocalNameprivate static intId_setNameprivate static intId_setNamespaceprivate static intId_textprivate static intId_toSourceprivate static intId_toStringprivate static intId_toXMLStringprivate static intId_valueOfprivate XMLLibImpllibprivate static intMAX_PROTOTYPE_IDprivate booleanprototypeFlagprivate static longserialVersionUIDprivate static java.lang.ObjectXMLOBJECT_TAG-
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
Constructors Modifier Constructor Description protectedXMLObjectImpl(XMLLibImpl lib, Scriptable scope, XMLObject prototype)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract voidaddMatches(XMLList rv, XMLName name)java.lang.ObjectaddValues(Context cx, boolean thisIsLeft, java.lang.Object value)Custom+operator.private static java.lang.Objectarg(java.lang.Object[] args, int i)(package private) abstract XMLListchild(int index)(package private) abstract XMLListchild(XMLName xmlName)(package private) abstract XMLListchildren()(package private) abstract XMLListcomments()(package private) abstract booleancontains(java.lang.Object xml)(package private) abstract XMLObjectImplcopy()(package private) XMLcreateEmptyXML()(package private) NamespacecreateNamespace(XmlNode.Namespace declaration)(package private) Namespace[]createNamespaces(XmlNode.Namespace[] declarations)voiddelete(java.lang.String name)Removes a named property from the object.booleandelete(Context cx, java.lang.Object id)Implementation of ECMAScript [[Delete]].(package private) abstract voiddeleteXMLProperty(XMLName name)ecmaDelete(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.(package private) java.lang.StringecmaEscapeAttributeValue(java.lang.String s)(package private) XMLecmaToXml(java.lang.Object object)(package private) abstract XMLListelements(XMLName xmlName)NativeWithenterDotQuery(Scriptable scope)Wrap this object into NativeWith to implement the .() query.NativeWithenterWith(Scriptable scope)Wrap this object into NativeWith to implement the with statement.protected java.lang.ObjectequivalentValues(java.lang.Object value)XMLObject always compare with any value and equivalentValues never returnsScriptable.NOT_FOUNDfor them but rather calls equivalentXml(value) and wrap the result as Boolean.(package private) abstract booleanequivalentXml(java.lang.Object target)Test XML equality with target the target.java.lang.ObjectexecIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned.(package private) voidexportAsJSClass(boolean sealed)protected intfindPrototypeId(java.lang.String s)java.lang.Objectget(java.lang.String name, Scriptable start)Returns the value of the named property or NOT_FOUND.java.lang.Objectget(Context cx, java.lang.Object id)Implementation of ECMAScript [[Get]]java.lang.ObjectgetDefaultValue(java.lang.Class<?> hint)Implements the [[DefaultValue]] internal method.java.lang.ObjectgetFunctionProperty(Context cx, int id)java.lang.ObjectgetFunctionProperty(Context cx, java.lang.String name)(package private) XMLLibImplgetLib()private XMLListgetMatches(XMLName name)ScriptablegetParentScope()Returns the parent (enclosing) scope of the object.(package private) XmlProcessorgetProcessor()ScriptablegetPrototype()Returns the prototype of the object.(package private) abstract XMLgetXML()(package private) abstract java.lang.ObjectgetXMLProperty(XMLName name)ecmaGet(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.booleanhas(java.lang.String name, Scriptable start)Returns true if the named property is defined.booleanhas(Context cx, java.lang.Object id)Implementation of ECMAScript [[Has]](package private) abstract booleanhasComplexContent()booleanhasInstance(Scriptable scriptable)Implements the instanceof operator.(package private) abstract booleanhasOwnProperty(XMLName xmlName)(package private) abstract booleanhasSimpleContent()(package private) abstract booleanhasXMLProperty(XMLName name)ecmaHas(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.(package private) voidinitialize(XMLLibImpl lib, Scriptable scope, XMLObject prototype)protected voidinitPrototypeId(int id)(package private) booleanisPrototype()protected abstract java.lang.ObjectjsConstructor(Context cx, boolean inNewExpr, java.lang.Object[] args)(package private) abstract intlength()RefmemberRef(Context cx, java.lang.Object elem, int memberTypeFlags)Generic reference to implement x.@y, x..y etc.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.(package private) QNamenewQName(java.lang.String uri, java.lang.String localName, java.lang.String prefix)(package private) QNamenewQName(XmlNode.QName name)(package private) XMLnewTextElementXML(XmlNode reference, XmlNode.QName qname, java.lang.String value)(package private) XMLnewXML(XmlNode node)(package private) XMLnewXMLFromJs(java.lang.Object inputObject)(package private) XMLListnewXMLList()(package private) XMLListnewXMLListFrom(java.lang.Object o)(package private) abstract voidnormalize()(package private) abstract java.lang.Objectparent()(package private) abstract XMLListprocessingInstructions(XMLName xmlName)(package private) abstract booleanpropertyIsEnumerable(java.lang.Object member)voidput(java.lang.String name, Scriptable start, java.lang.Object value)Sets the value of the named property, creating it if need be.voidput(Context cx, java.lang.Object id, java.lang.Object value)Implementation of ECMAScript [[Put]](package private) abstract voidputXMLProperty(XMLName name, java.lang.Object value)ecmaPut(cx, id, value) calls this after resolving when id to XMLName and checking it is not Uint32 index.voidsetParentScope(Scriptable parent)Sets the parent (enclosing) scope of the object.voidsetPrototype(Scriptable prototype)Sets the prototype of the object.(package private) abstract XMLListtext()private java.lang.Object[]toObjectArray(java.lang.Object[] typed)(package private) abstract java.lang.StringtoSource(int indent)abstract java.lang.StringtoString()(package private) abstract java.lang.StringtoXMLString()(package private) abstract java.lang.ObjectvalueOf()(package private) XMLxmlFromNode(XmlNode node)private voidxmlMethodNotFound(java.lang.Object object, java.lang.String name)-
Methods inherited from class org.mozilla.javascript.xml.XMLObject
getExtraMethodSource, getTypeOf
-
Methods inherited from class org.mozilla.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, ensureType, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findInstanceIdInfo, findPrototypeId, get, getAttributes, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdAttributes, setInstanceIdValue
-
Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getProperty, getProperty, getProperty, getPropertyIds, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, 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, size
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
XMLOBJECT_TAG
private static final java.lang.Object XMLOBJECT_TAG
-
lib
private XMLLibImpl lib
-
prototypeFlag
private boolean prototypeFlag
-
Id_constructor
private static final int Id_constructor
- See Also:
- Constant Field Values
-
Id_addNamespace
private static final int Id_addNamespace
- See Also:
- Constant Field Values
-
Id_appendChild
private static final int Id_appendChild
- See Also:
- Constant Field Values
-
Id_attribute
private static final int Id_attribute
- See Also:
- Constant Field Values
-
Id_attributes
private static final int Id_attributes
- See Also:
- Constant Field Values
-
Id_child
private static final int Id_child
- See Also:
- Constant Field Values
-
Id_childIndex
private static final int Id_childIndex
- See Also:
- Constant Field Values
-
Id_children
private static final int Id_children
- See Also:
- Constant Field Values
-
Id_comments
private static final int Id_comments
- See Also:
- Constant Field Values
-
Id_contains
private static final int Id_contains
- See Also:
- Constant Field Values
-
Id_copy
private static final int Id_copy
- See Also:
- Constant Field Values
-
Id_descendants
private static final int Id_descendants
- See Also:
- Constant Field Values
-
Id_elements
private static final int Id_elements
- See Also:
- Constant Field Values
-
Id_inScopeNamespaces
private static final int Id_inScopeNamespaces
- See Also:
- Constant Field Values
-
Id_insertChildAfter
private static final int Id_insertChildAfter
- See Also:
- Constant Field Values
-
Id_insertChildBefore
private static final int Id_insertChildBefore
- See Also:
- Constant Field Values
-
Id_hasOwnProperty
private static final int Id_hasOwnProperty
- See Also:
- Constant Field Values
-
Id_hasComplexContent
private static final int Id_hasComplexContent
- See Also:
- Constant Field Values
-
Id_hasSimpleContent
private static final int Id_hasSimpleContent
- See Also:
- Constant Field Values
-
Id_length
private static final int Id_length
- See Also:
- Constant Field Values
-
Id_localName
private static final int Id_localName
- See Also:
- Constant Field Values
-
Id_name
private static final int Id_name
- See Also:
- Constant Field Values
-
Id_namespace
private static final int Id_namespace
- See Also:
- Constant Field Values
-
Id_namespaceDeclarations
private static final int Id_namespaceDeclarations
- See Also:
- Constant Field Values
-
Id_nodeKind
private static final int Id_nodeKind
- See Also:
- Constant Field Values
-
Id_normalize
private static final int Id_normalize
- See Also:
- Constant Field Values
-
Id_parent
private static final int Id_parent
- See Also:
- Constant Field Values
-
Id_prependChild
private static final int Id_prependChild
- See Also:
- Constant Field Values
-
Id_processingInstructions
private static final int Id_processingInstructions
- See Also:
- Constant Field Values
-
Id_propertyIsEnumerable
private static final int Id_propertyIsEnumerable
- See Also:
- Constant Field Values
-
Id_removeNamespace
private static final int Id_removeNamespace
- See Also:
- Constant Field Values
-
Id_replace
private static final int Id_replace
- See Also:
- Constant Field Values
-
Id_setChildren
private static final int Id_setChildren
- See Also:
- Constant Field Values
-
Id_setLocalName
private static final int Id_setLocalName
- See Also:
- Constant Field Values
-
Id_setName
private static final int Id_setName
- See Also:
- Constant Field Values
-
Id_setNamespace
private static final int Id_setNamespace
- See Also:
- Constant Field Values
-
Id_text
private static final int Id_text
- See Also:
- Constant Field Values
-
Id_toString
private static final int Id_toString
- See Also:
- Constant Field Values
-
Id_toSource
private static final int Id_toSource
- See Also:
- Constant Field Values
-
Id_toXMLString
private static final int Id_toXMLString
- See Also:
- Constant Field Values
-
Id_valueOf
private static final int Id_valueOf
- See Also:
- Constant Field Values
-
MAX_PROTOTYPE_ID
private static final int MAX_PROTOTYPE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLObjectImpl
protected XMLObjectImpl(XMLLibImpl lib, Scriptable scope, XMLObject prototype)
-
-
Method Detail
-
initialize
final void initialize(XMLLibImpl lib, Scriptable scope, XMLObject prototype)
-
isPrototype
final boolean isPrototype()
-
getLib
XMLLibImpl getLib()
-
newXMLList
final XMLList newXMLList()
-
newXMLListFrom
final XMLList newXMLListFrom(java.lang.Object o)
-
getProcessor
final XmlProcessor getProcessor()
-
newQName
final QName newQName(java.lang.String uri, java.lang.String localName, java.lang.String prefix)
-
newQName
final QName newQName(XmlNode.QName name)
-
createNamespace
final Namespace createNamespace(XmlNode.Namespace declaration)
-
createNamespaces
final Namespace[] createNamespaces(XmlNode.Namespace[] declarations)
-
getPrototype
public final Scriptable getPrototype()
Description copied from class:ScriptableObjectReturns the prototype of the object.- Specified by:
getPrototypein interfaceScriptable- Overrides:
getPrototypein classScriptableObject- Returns:
- the prototype
-
setPrototype
public final void setPrototype(Scriptable prototype)
Description copied from class:ScriptableObjectSets the prototype of the object.- Specified by:
setPrototypein interfaceScriptable- Overrides:
setPrototypein classScriptableObject- Parameters:
prototype- the prototype to set
-
getParentScope
public final Scriptable getParentScope()
Description copied from class:ScriptableObjectReturns the parent (enclosing) scope of the object.- Specified by:
getParentScopein interfaceScriptable- Overrides:
getParentScopein classScriptableObject- Returns:
- the parent scope
-
setParentScope
public final void setParentScope(Scriptable parent)
Description copied from class:ScriptableObjectSets the parent (enclosing) scope of the object.- Specified by:
setParentScopein interfaceScriptable- Overrides:
setParentScopein classScriptableObject- Parameters:
parent- the parent scope to set
-
getDefaultValue
public final java.lang.Object getDefaultValue(java.lang.Class<?> hint)
Description copied from class:ScriptableObjectImplements the [[DefaultValue]] internal method.Note that the toPrimitive conversion is a no-op for every type other than Object, for which [[DefaultValue]] is called. See ECMA 9.1.
A
hintof null means "no hint".- Specified by:
getDefaultValuein interfaceScriptable- Overrides:
getDefaultValuein classScriptableObject- Parameters:
hint- the type hint- Returns:
- the default value for the object
See ECMA 8.6.2.6.
-
hasInstance
public final boolean hasInstance(Scriptable scriptable)
Description copied from class:ScriptableObjectImplements the instanceof operator.This operator has been proposed to ECMA.
- Specified by:
hasInstancein interfaceScriptable- Overrides:
hasInstancein classScriptableObject- Parameters:
scriptable- The value that appeared on the LHS of the instanceof operator- Returns:
- true if "this" appears in value's prototype chain
-
hasXMLProperty
abstract boolean hasXMLProperty(XMLName name)
ecmaHas(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.
-
getXMLProperty
abstract java.lang.Object getXMLProperty(XMLName name)
ecmaGet(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.
-
putXMLProperty
abstract void putXMLProperty(XMLName name, java.lang.Object value)
ecmaPut(cx, id, value) calls this after resolving when id to XMLName and checking it is not Uint32 index.
-
deleteXMLProperty
abstract void deleteXMLProperty(XMLName name)
ecmaDelete(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.
-
equivalentXml
abstract boolean equivalentXml(java.lang.Object target)
Test XML equality with target the target.
-
getXML
abstract XML getXML()
-
child
abstract XMLList child(int index)
-
children
abstract XMLList children()
-
comments
abstract XMLList comments()
-
contains
abstract boolean contains(java.lang.Object xml)
-
copy
abstract XMLObjectImpl copy()
-
hasOwnProperty
abstract boolean hasOwnProperty(XMLName xmlName)
-
hasComplexContent
abstract boolean hasComplexContent()
-
hasSimpleContent
abstract boolean hasSimpleContent()
-
length
abstract int length()
-
normalize
abstract void normalize()
-
parent
abstract java.lang.Object parent()
-
propertyIsEnumerable
abstract boolean propertyIsEnumerable(java.lang.Object member)
-
text
abstract XMLList text()
-
toString
public abstract java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toSource
abstract java.lang.String toSource(int indent)
-
toXMLString
abstract java.lang.String toXMLString()
-
valueOf
abstract java.lang.Object valueOf()
-
jsConstructor
protected abstract java.lang.Object jsConstructor(Context cx, boolean inNewExpr, java.lang.Object[] args)
-
equivalentValues
protected final java.lang.Object equivalentValues(java.lang.Object value)
XMLObject always compare with any value and equivalentValues never returnsScriptable.NOT_FOUNDfor them but rather calls equivalentXml(value) and wrap the result as Boolean.- Overrides:
equivalentValuesin classScriptableObject
-
has
public final boolean has(Context cx, java.lang.Object id)
Implementation of ECMAScript [[Has]]
-
has
public boolean has(java.lang.String name, Scriptable start)Description copied from class:ScriptableObjectReturns true if the named property is defined.- Specified by:
hasin interfaceScriptable- Overrides:
hasin classIdScriptableObject- Parameters:
name- the name of the propertystart- the object in which the lookup began- Returns:
- true if and only if the property was found in the object
- See Also:
Scriptable.get(String, Scriptable),ScriptableObject.getProperty(Scriptable, String)
-
get
public final java.lang.Object get(Context cx, java.lang.Object id)
Implementation of ECMAScript [[Get]]
-
get
public java.lang.Object get(java.lang.String name, Scriptable start)Description copied from class:ScriptableObjectReturns the value of the named property or NOT_FOUND.If the property was created using defineProperty, the appropriate getter method is called.
- Specified by:
getin interfaceScriptable- Overrides:
getin classIdScriptableObject- Parameters:
name- the name of the propertystart- the object in which the lookup began- Returns:
- the value of the property (may be null), or NOT_FOUND
- See Also:
Context.getUndefinedValue()
-
put
public final void put(Context cx, java.lang.Object id, java.lang.Object value)
Implementation of ECMAScript [[Put]]
-
put
public void put(java.lang.String name, Scriptable start, java.lang.Object value)Description copied from class:ScriptableObjectSets the value of the named property, creating it if need be.If the property was created using defineProperty, the appropriate setter method is called.
If the property's attributes include READONLY, no action is taken. This method will actually set the property in the start object.
- Specified by:
putin interfaceScriptable- Overrides:
putin classIdScriptableObject- Parameters:
name- the name of the propertystart- the object whose property is being setvalue- value to set the property to- See Also:
Scriptable.has(String, Scriptable),Scriptable.get(String, Scriptable),ScriptableObject.putProperty(Scriptable, String, Object),Context.toObject(Object, Scriptable)
-
delete
public final boolean delete(Context cx, java.lang.Object id)
Implementation of ECMAScript [[Delete]].
-
delete
public void delete(java.lang.String name)
Description copied from class:ScriptableObjectRemoves a named property from the object.If the property is not found, or it has the PERMANENT attribute, no action is taken.
- Specified by:
deletein interfaceScriptable- Overrides:
deletein classIdScriptableObject- Parameters:
name- the name of the property- See Also:
Scriptable.get(String, Scriptable),ScriptableObject.deleteProperty(Scriptable, String)
-
getFunctionProperty
public java.lang.Object getFunctionProperty(Context cx, int id)
- Specified by:
getFunctionPropertyin classXMLObject
-
getFunctionProperty
public java.lang.Object getFunctionProperty(Context cx, java.lang.String name)
- Specified by:
getFunctionPropertyin classXMLObject
-
memberRef
public Ref memberRef(Context cx, java.lang.Object elem, int memberTypeFlags)
Description copied from class:XMLObjectGeneric reference to implement x.@y, x..y etc.
-
memberRef
public 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.
-
enterWith
public NativeWith enterWith(Scriptable scope)
Description copied from class:XMLObjectWrap this object into NativeWith to implement the with statement.
-
enterDotQuery
public NativeWith enterDotQuery(Scriptable scope)
Description copied from class:XMLObjectWrap this object into NativeWith to implement the .() query.- Specified by:
enterDotQueryin classXMLObject
-
addValues
public final java.lang.Object addValues(Context cx, boolean thisIsLeft, java.lang.Object value)
Description copied from class:XMLObjectCustom+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.
-
exportAsJSClass
final void exportAsJSClass(boolean sealed)
-
findPrototypeId
protected int findPrototypeId(java.lang.String s)
- Overrides:
findPrototypeIdin classIdScriptableObject
-
initPrototypeId
protected void initPrototypeId(int id)
- Overrides:
initPrototypeIdin classIdScriptableObject
-
toObjectArray
private java.lang.Object[] toObjectArray(java.lang.Object[] typed)
-
xmlMethodNotFound
private void xmlMethodNotFound(java.lang.Object object, java.lang.String name)
-
execIdCall
public java.lang.Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
Description copied from class:IdScriptableObject'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned.- Specified by:
execIdCallin interfaceIdFunctionCall- Overrides:
execIdCallin classIdScriptableObject
-
arg
private static java.lang.Object arg(java.lang.Object[] args, int i)
-
newTextElementXML
final XML newTextElementXML(XmlNode reference, XmlNode.QName qname, java.lang.String value)
-
newXMLFromJs
final XML newXMLFromJs(java.lang.Object inputObject)
-
ecmaToXml
final XML ecmaToXml(java.lang.Object object)
-
ecmaEscapeAttributeValue
final java.lang.String ecmaEscapeAttributeValue(java.lang.String s)
-
createEmptyXML
final XML createEmptyXML()
-
-