Package org.htmlunit.corejs.javascript
Class NativeReflect
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.NativeReflect
- All Implemented Interfaces:
Serializable
,ConstProperties
,DebuggableObject
,Scriptable
,SymbolScriptable
This class implements the Reflect object.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.KeyComparator
-
Field Summary
FieldsFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Object
apply
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ScriptableObject
checkTarget
(Object[] args) private static Scriptable
construct
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) see https://262.ecma-international.org/12.0/#sec-reflect.constructprivate static Object
defineProperty
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
deleteProperty
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
get
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Return the name of the class.private static Scriptable
getOwnPropertyDescriptor
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
getPrototypeOf
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
has
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static void
init
(Context cx, Scriptable scope, boolean sealed) private static Object
isExtensible
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Scriptable
ownKeys
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
preventExtensions
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
set
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
setPrototypeOf
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Methods 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, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getBase, getBase, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putImpl, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
REFLECT_TAG
- See Also:
-
-
Constructor Details
-
NativeReflect
private NativeReflect()
-
-
Method Details
-
init
-
getClassName
Description copied from class:ScriptableObject
Return the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassName
in interfaceScriptable
- Specified by:
getClassName
in classScriptableObject
-
apply
-
construct
private static Scriptable construct(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) see https://262.ecma-international.org/12.0/#sec-reflect.construct -
defineProperty
private static Object defineProperty(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
deleteProperty
private static Object deleteProperty(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
get
-
getOwnPropertyDescriptor
private static Scriptable getOwnPropertyDescriptor(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
getPrototypeOf
private static Scriptable getPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
has
-
isExtensible
-
ownKeys
-
preventExtensions
private static Object preventExtensions(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
set
-
setPrototypeOf
private static Object setPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
checkTarget
-