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_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Objectapply(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ScriptableObjectcheckTarget(Object[] args) private static Scriptableconstruct(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) see https://262.ecma-international.org/12.0/#sec-reflect.constructprivate static ObjectdefineProperty(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ObjectdeleteProperty(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectget(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Return the name of the class.private static ScriptablegetOwnPropertyDescriptor(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ScriptablegetPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objecthas(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) static voidinit(Context cx, Scriptable scope, boolean sealed) private static ObjectisExtensible(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ScriptableownKeys(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ObjectpreventExtensions(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectset(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static ObjectsetPrototypeOf(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: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
-
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
-