Module org.htmlunit

Class DOMStringMap

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.dom.DOMStringMap
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public final class DOMStringMap extends HtmlUnitScriptable
A JavaScript object for DOMStringMap.
Author:
Ahmed Ashour, Ronald Brill
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction
  • Field Summary

    Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    CONST, DONTENUM, EMPTY, LEGACY_CONST, PERMANENT, READONLY, STRICTLY_READONLY, UNINITIALIZED_CONST

    Fields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner

    isSealed

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String name)
    get(String name, org.htmlunit.corejs.javascript.Scriptable start)
    Gets a named property from the object.
    protected Object[]
    getIds(org.htmlunit.corejs.javascript.CompoundOperationMap<org.htmlunit.corejs.javascript.Scriptable> map, boolean getNonEnumerable, boolean getSymbols)
    Overridden to enumerate the data attributes as own properties (Object.keys(), Object.getOwnPropertyNames(), for...in, ...).
    protected org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo
    getOwnPropertyDescriptor(org.htmlunit.corejs.javascript.Context cx, Object id)
    Overridden to provide property descriptors for the data attributes.
    boolean
    has(String name, org.htmlunit.corejs.javascript.Scriptable start)
    Overridden to make the data attributes visible as own properties ('in' operator).
    void
    JavaScript constructor.
    void
    put(String name, org.htmlunit.corejs.javascript.Scriptable start, Object value)

    Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size

    Methods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner

    associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMaps

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.htmlunit.corejs.javascript.Scriptable

    get, getIds, has

    Methods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable

    get, has
  • Constructor Details

    • DOMStringMap

      public DOMStringMap()
      Creates an instance.
    • DOMStringMap

      public DOMStringMap(Node node)
      Creates an instance.
      Parameters:
      node - the node which contains the underlying string
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
    • get

      public Object get(String name, org.htmlunit.corejs.javascript.Scriptable start)
      Gets a named property from the object. Normally HtmlUnit objects don't need to overwrite this method as properties are defined on the prototypes. In some cases where "content" of object has priority compared to the properties consider using utility HtmlUnitScriptable.getWithPreemption(String).
      Specified by:
      get in interface org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>
      Specified by:
      get in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      get in class HtmlUnitScriptable
    • has

      public boolean has(String name, org.htmlunit.corejs.javascript.Scriptable start)
      Overridden to make the data attributes visible as own properties ('in' operator).
      Specified by:
      has in interface org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>
      Specified by:
      has in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      has in class org.htmlunit.corejs.javascript.ScriptableObject
    • getIds

      protected Object[] getIds(org.htmlunit.corejs.javascript.CompoundOperationMap<org.htmlunit.corejs.javascript.Scriptable> map, boolean getNonEnumerable, boolean getSymbols)
      Overridden to enumerate the data attributes as own properties (Object.keys(), Object.getOwnPropertyNames(), for...in, ...). Overridden to list the indexed properties (see HtmlUnitScriptable.getIndexedPropertyCount()) in front of the other own properties.
      Overrides:
      getIds in class HtmlUnitScriptable
    • getOwnPropertyDescriptor

      protected org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo getOwnPropertyDescriptor(org.htmlunit.corejs.javascript.Context cx, Object id)
      Overridden to provide property descriptors for the data attributes. Overridden to provide property descriptors for the indexed properties (see HtmlUnitScriptable.getIndexedPropertyCount()).
      Overrides:
      getOwnPropertyDescriptor in class HtmlUnitScriptable
    • put

      public void put(String name, org.htmlunit.corejs.javascript.Scriptable start, Object value)
      Specified by:
      put in interface org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>
      Specified by:
      put in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      put in class HtmlUnitScriptable
    • delete

      public void delete(String name)
      Specified by:
      delete in interface org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>
      Specified by:
      delete in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      delete in class org.htmlunit.corejs.javascript.ScriptableObject