Package org.htmlunit.corejs.javascript
Class NativeReflect
- java.lang.Object
-
- org.htmlunit.corejs.javascript.ScriptableObject
-
- org.htmlunit.corejs.javascript.NativeReflect
-
- All Implemented Interfaces:
java.io.Serializable
,ConstProperties
,DebuggableObject
,Scriptable
,SymbolScriptable
final class NativeReflect extends ScriptableObject
This class implements the Reflect object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.KeyComparator
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
REFLECT_TAG
private static long
serialVersionUID
-
Fields 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 Modifier Constructor Description private
NativeReflect()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Object
apply(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static ScriptableObject
checkTarget(java.lang.Object[] args)
private static Scriptable
construct(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
see https://262.ecma-international.org/12.0/#sec-reflect.constructprivate static java.lang.Object
defineProperty(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static java.lang.Object
deleteProperty(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static java.lang.Object
get(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
java.lang.String
getClassName()
Return the name of the class.private static Scriptable
getOwnPropertyDescriptor(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static Scriptable
getPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static java.lang.Object
has(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
static void
init(Context cx, Scriptable scope, boolean sealed)
private static java.lang.Object
isExtensible(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static Scriptable
ownKeys(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static java.lang.Object
preventExtensions(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static java.lang.Object
set(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
private static java.lang.Object
setPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, java.lang.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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
REFLECT_TAG
private static final java.lang.String REFLECT_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static void init(Context cx, Scriptable scope, boolean sealed)
-
getClassName
public java.lang.String 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
private static java.lang.Object apply(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
construct
private static Scriptable construct(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
see https://262.ecma-international.org/12.0/#sec-reflect.construct
-
defineProperty
private static java.lang.Object defineProperty(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
deleteProperty
private static java.lang.Object deleteProperty(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
get
private static java.lang.Object get(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
getOwnPropertyDescriptor
private static Scriptable getOwnPropertyDescriptor(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
getPrototypeOf
private static Scriptable getPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
has
private static java.lang.Object has(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
isExtensible
private static java.lang.Object isExtensible(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
ownKeys
private static Scriptable ownKeys(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
preventExtensions
private static java.lang.Object preventExtensions(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
set
private static java.lang.Object set(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
setPrototypeOf
private static java.lang.Object setPrototypeOf(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
checkTarget
private static ScriptableObject checkTarget(java.lang.Object[] args)
-
-