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 int
Id_addNamespace
private static int
Id_appendChild
private static int
Id_attribute
private static int
Id_attributes
private static int
Id_child
private static int
Id_childIndex
private static int
Id_children
private static int
Id_comments
private static int
Id_constructor
private static int
Id_contains
private static int
Id_copy
private static int
Id_descendants
private static int
Id_elements
private static int
Id_hasComplexContent
private static int
Id_hasOwnProperty
private static int
Id_hasSimpleContent
private static int
Id_inScopeNamespaces
private static int
Id_insertChildAfter
private static int
Id_insertChildBefore
private static int
Id_length
private static int
Id_localName
private static int
Id_name
private static int
Id_namespace
private static int
Id_namespaceDeclarations
private static int
Id_nodeKind
private static int
Id_normalize
private static int
Id_parent
private static int
Id_prependChild
private static int
Id_processingInstructions
private static int
Id_propertyIsEnumerable
private static int
Id_removeNamespace
private static int
Id_replace
private static int
Id_setChildren
private static int
Id_setLocalName
private static int
Id_setName
private static int
Id_setNamespace
private static int
Id_text
private static int
Id_toSource
private static int
Id_toString
private static int
Id_toXMLString
private static int
Id_valueOf
private XMLLibImpl
lib
private static int
MAX_PROTOTYPE_ID
private boolean
prototypeFlag
private static long
serialVersionUID
private static java.lang.Object
XMLOBJECT_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 protected
XMLObjectImpl(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 void
addMatches(XMLList rv, XMLName name)
java.lang.Object
addValues(Context cx, boolean thisIsLeft, java.lang.Object value)
Custom+
operator.private static java.lang.Object
arg(java.lang.Object[] args, int i)
(package private) abstract XMLList
child(int index)
(package private) abstract XMLList
child(XMLName xmlName)
(package private) abstract XMLList
children()
(package private) abstract XMLList
comments()
(package private) abstract boolean
contains(java.lang.Object xml)
(package private) abstract XMLObjectImpl
copy()
(package private) XML
createEmptyXML()
(package private) Namespace
createNamespace(XmlNode.Namespace declaration)
(package private) Namespace[]
createNamespaces(XmlNode.Namespace[] declarations)
void
delete(java.lang.String name)
Removes a named property from the object.boolean
delete(Context cx, java.lang.Object id)
Implementation of ECMAScript [[Delete]].(package private) abstract void
deleteXMLProperty(XMLName name)
ecmaDelete(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.(package private) java.lang.String
ecmaEscapeAttributeValue(java.lang.String s)
(package private) XML
ecmaToXml(java.lang.Object object)
(package private) abstract XMLList
elements(XMLName xmlName)
NativeWith
enterDotQuery(Scriptable scope)
Wrap this object into NativeWith to implement the .() query.NativeWith
enterWith(Scriptable scope)
Wrap this object into NativeWith to implement the with statement.protected java.lang.Object
equivalentValues(java.lang.Object value)
XMLObject always compare with any value and equivalentValues never returnsScriptable.NOT_FOUND
for them but rather calls equivalentXml(value) and wrap the result as Boolean.(package private) abstract boolean
equivalentXml(java.lang.Object target)
Test XML equality with target the target.java.lang.Object
execIdCall(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) void
exportAsJSClass(boolean sealed)
protected int
findPrototypeId(java.lang.String s)
java.lang.Object
get(java.lang.String name, Scriptable start)
Returns the value of the named property or NOT_FOUND.java.lang.Object
get(Context cx, java.lang.Object id)
Implementation of ECMAScript [[Get]]java.lang.Object
getDefaultValue(java.lang.Class<?> hint)
Implements the [[DefaultValue]] internal method.java.lang.Object
getFunctionProperty(Context cx, int id)
java.lang.Object
getFunctionProperty(Context cx, java.lang.String name)
(package private) XMLLibImpl
getLib()
private XMLList
getMatches(XMLName name)
Scriptable
getParentScope()
Returns the parent (enclosing) scope of the object.(package private) XmlProcessor
getProcessor()
Scriptable
getPrototype()
Returns the prototype of the object.(package private) abstract XML
getXML()
(package private) 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.boolean
has(java.lang.String name, Scriptable start)
Returns true if the named property is defined.boolean
has(Context cx, java.lang.Object id)
Implementation of ECMAScript [[Has]](package private) abstract boolean
hasComplexContent()
boolean
hasInstance(Scriptable scriptable)
Implements the instanceof operator.(package private) abstract boolean
hasOwnProperty(XMLName xmlName)
(package private) abstract boolean
hasSimpleContent()
(package private) abstract boolean
hasXMLProperty(XMLName name)
ecmaHas(cx, id) calls this after resolving when id to XMLName and checking it is not Uint32 index.(package private) void
initialize(XMLLibImpl lib, Scriptable scope, XMLObject prototype)
protected void
initPrototypeId(int id)
(package private) boolean
isPrototype()
protected abstract java.lang.Object
jsConstructor(Context cx, boolean inNewExpr, java.lang.Object[] args)
(package private) abstract int
length()
Ref
memberRef(Context cx, java.lang.Object elem, int memberTypeFlags)
Generic reference to implement x.@y, x..y etc.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.(package private) QName
newQName(java.lang.String uri, java.lang.String localName, java.lang.String prefix)
(package private) QName
newQName(XmlNode.QName name)
(package private) XML
newTextElementXML(XmlNode reference, XmlNode.QName qname, java.lang.String value)
(package private) XML
newXML(XmlNode node)
(package private) XML
newXMLFromJs(java.lang.Object inputObject)
(package private) XMLList
newXMLList()
(package private) XMLList
newXMLListFrom(java.lang.Object o)
(package private) abstract void
normalize()
(package private) abstract java.lang.Object
parent()
(package private) abstract XMLList
processingInstructions(XMLName xmlName)
(package private) abstract boolean
propertyIsEnumerable(java.lang.Object member)
void
put(java.lang.String name, Scriptable start, java.lang.Object value)
Sets the value of the named property, creating it if need be.void
put(Context cx, java.lang.Object id, java.lang.Object value)
Implementation of ECMAScript [[Put]](package private) 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.void
setParentScope(Scriptable parent)
Sets the parent (enclosing) scope of the object.void
setPrototype(Scriptable prototype)
Sets the prototype of the object.(package private) abstract XMLList
text()
private java.lang.Object[]
toObjectArray(java.lang.Object[] typed)
(package private) abstract java.lang.String
toSource(int indent)
abstract java.lang.String
toString()
(package private) abstract java.lang.String
toXMLString()
(package private) abstract java.lang.Object
valueOf()
(package private) XML
xmlFromNode(XmlNode node)
private void
xmlMethodNotFound(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:ScriptableObject
Returns the prototype of the object.- Specified by:
getPrototype
in interfaceScriptable
- Overrides:
getPrototype
in classScriptableObject
- Returns:
- the prototype
-
setPrototype
public final void setPrototype(Scriptable prototype)
Description copied from class:ScriptableObject
Sets the prototype of the object.- Specified by:
setPrototype
in interfaceScriptable
- Overrides:
setPrototype
in classScriptableObject
- Parameters:
prototype
- the prototype to set
-
getParentScope
public final Scriptable getParentScope()
Description copied from class:ScriptableObject
Returns the parent (enclosing) scope of the object.- Specified by:
getParentScope
in interfaceScriptable
- Overrides:
getParentScope
in classScriptableObject
- Returns:
- the parent scope
-
setParentScope
public final void setParentScope(Scriptable parent)
Description copied from class:ScriptableObject
Sets the parent (enclosing) scope of the object.- Specified by:
setParentScope
in interfaceScriptable
- Overrides:
setParentScope
in classScriptableObject
- Parameters:
parent
- the parent scope to set
-
getDefaultValue
public final java.lang.Object getDefaultValue(java.lang.Class<?> hint)
Description copied from class:ScriptableObject
Implements 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
hint
of null means "no hint".- Specified by:
getDefaultValue
in interfaceScriptable
- Overrides:
getDefaultValue
in 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:ScriptableObject
Implements the instanceof operator.This operator has been proposed to ECMA.
- Specified by:
hasInstance
in interfaceScriptable
- Overrides:
hasInstance
in 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:
toString
in 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_FOUND
for them but rather calls equivalentXml(value) and wrap the result as Boolean.- Overrides:
equivalentValues
in 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:ScriptableObject
Returns true if the named property is defined.- Specified by:
has
in interfaceScriptable
- Overrides:
has
in 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:ScriptableObject
Returns the value of the named property or NOT_FOUND.If the property was created using defineProperty, the appropriate getter method is called.
- Specified by:
get
in interfaceScriptable
- Overrides:
get
in 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:ScriptableObject
Sets 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:
put
in interfaceScriptable
- Overrides:
put
in 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:ScriptableObject
Removes a named property from the object.If the property is not found, or it has the PERMANENT attribute, no action is taken.
- Specified by:
delete
in interfaceScriptable
- Overrides:
delete
in 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:
getFunctionProperty
in classXMLObject
-
getFunctionProperty
public java.lang.Object getFunctionProperty(Context cx, java.lang.String name)
- Specified by:
getFunctionProperty
in classXMLObject
-
memberRef
public Ref memberRef(Context cx, java.lang.Object elem, int memberTypeFlags)
Description copied from class:XMLObject
Generic 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:XMLObject
Wrap this object into NativeWith to implement the with statement.
-
enterDotQuery
public NativeWith enterDotQuery(Scriptable scope)
Description copied from class:XMLObject
Wrap this object into NativeWith to implement the .() query.- Specified by:
enterDotQuery
in classXMLObject
-
addValues
public final java.lang.Object addValues(Context cx, boolean thisIsLeft, java.lang.Object value)
Description copied from class:XMLObject
Custom+
operator. Should returnScriptable.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.
-
exportAsJSClass
final void exportAsJSClass(boolean sealed)
-
findPrototypeId
protected int findPrototypeId(java.lang.String s)
- Overrides:
findPrototypeId
in classIdScriptableObject
-
initPrototypeId
protected void initPrototypeId(int id)
- Overrides:
initPrototypeId
in 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:
execIdCall
in interfaceIdFunctionCall
- Overrides:
execIdCall
in 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()
-
-