Package org.htmlunit.corejs.javascript
Class NativeObject
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.IdScriptableObject
org.htmlunit.corejs.javascript.NativeObject
- All Implemented Interfaces:
Serializable,Map,ConstProperties,DebuggableObject,IdFunctionCall,Scriptable,SymbolScriptable
- Direct Known Subclasses:
NativeIterator.StopIteration
This class implements the Object native object. See ECMA 15.2.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class(package private) classNested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.KeyComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Objectprivate static final longFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) 'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned.protected voidprotected intReturn the name of the class.private static ScriptablegetCompatibleObject(Context cx, Scriptable scope, Object arg) (package private) static voidinit(Scriptable scope, boolean sealed) protected voidinitPrototypeId(int id) private booleanisEnumerable(int index, Object obj) private booleanisEnumerable(String key, Object obj) private booleanisEnumerable(Symbol sym, Object obj) keySet()voidtoString()values()Methods inherited from class org.htmlunit.corejs.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, ensureType, exportAsJSClass, findInstanceIdInfo, findInstanceIdInfo, findPrototypeId, get, get, getAttributes, getAttributes, getIds, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributes, setInstanceIdAttributes, setInstanceIdValueMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
addLazilyInitializedValue, applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildClassCtor, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, checkValidAttributes, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getBase, getBase, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putImpl, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, size
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
OBJECT_TAG
-
ConstructorId_getPrototypeOf
private static final int ConstructorId_getPrototypeOf- See Also:
-
ConstructorId_keys
private static final int ConstructorId_keys- See Also:
-
ConstructorId_getOwnPropertyNames
private static final int ConstructorId_getOwnPropertyNames- See Also:
-
ConstructorId_getOwnPropertyDescriptor
private static final int ConstructorId_getOwnPropertyDescriptor- See Also:
-
ConstructorId_getOwnPropertyDescriptors
private static final int ConstructorId_getOwnPropertyDescriptors- See Also:
-
ConstructorId_defineProperty
private static final int ConstructorId_defineProperty- See Also:
-
ConstructorId_isExtensible
private static final int ConstructorId_isExtensible- See Also:
-
ConstructorId_preventExtensions
private static final int ConstructorId_preventExtensions- See Also:
-
ConstructorId_defineProperties
private static final int ConstructorId_defineProperties- See Also:
-
ConstructorId_create
private static final int ConstructorId_create- See Also:
-
ConstructorId_isSealed
private static final int ConstructorId_isSealed- See Also:
-
ConstructorId_isFrozen
private static final int ConstructorId_isFrozen- See Also:
-
ConstructorId_seal
private static final int ConstructorId_seal- See Also:
-
ConstructorId_freeze
private static final int ConstructorId_freeze- See Also:
-
ConstructorId_getOwnPropertySymbols
private static final int ConstructorId_getOwnPropertySymbols- See Also:
-
ConstructorId_assign
private static final int ConstructorId_assign- See Also:
-
ConstructorId_is
private static final int ConstructorId_is- See Also:
-
ConstructorId_setPrototypeOf
private static final int ConstructorId_setPrototypeOf- See Also:
-
ConstructorId_entries
private static final int ConstructorId_entries- See Also:
-
ConstructorId_fromEntries
private static final int ConstructorId_fromEntries- See Also:
-
ConstructorId_values
private static final int ConstructorId_values- See Also:
-
ConstructorId_hasOwn
private static final int ConstructorId_hasOwn- See Also:
-
Id_constructor
private static final int Id_constructor- See Also:
-
Id_toString
private static final int Id_toString- See Also:
-
Id_toLocaleString
private static final int Id_toLocaleString- See Also:
-
Id_valueOf
private static final int Id_valueOf- See Also:
-
Id_hasOwnProperty
private static final int Id_hasOwnProperty- See Also:
-
Id_propertyIsEnumerable
private static final int Id_propertyIsEnumerable- See Also:
-
Id_isPrototypeOf
private static final int Id_isPrototypeOf- See Also:
-
Id_toSource
private static final int Id_toSource- See Also:
-
Id___defineGetter__
private static final int Id___defineGetter__- See Also:
-
Id___defineSetter__
private static final int Id___defineSetter__- See Also:
-
Id___lookupGetter__
private static final int Id___lookupGetter__- See Also:
-
Id___lookupSetter__
private static final int Id___lookupSetter__- See Also:
-
MAX_PROTOTYPE_ID
private static final int MAX_PROTOTYPE_ID- See Also:
-
-
Constructor Details
-
NativeObject
public NativeObject()
-
-
Method Details
-
init
-
getClassName
Description copied from class:ScriptableObjectReturn the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
toString
-
fillConstructorProperties
- Overrides:
fillConstructorPropertiesin classIdScriptableObject
-
initPrototypeId
protected void initPrototypeId(int id) - Overrides:
initPrototypeIdin classIdScriptableObject
-
execIdCall
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, 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
-
isEnumerable
-
isEnumerable
-
isEnumerable
-
getCompatibleObject
-
containsKey
- Specified by:
containsKeyin interfaceMap
-
containsValue
- Specified by:
containsValuein interfaceMap
-
remove
-
keySet
-
values
-
entrySet
-
put
-
putAll
-
clear
public void clear() -
findPrototypeId
- Overrides:
findPrototypeIdin classIdScriptableObject
-