@JsType(isNative=true,
namespace="<global>",
name="Object")
public class JsObject
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
JsObject() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
assign(java.lang.Object target,
java.lang.Object... sources)
The Object.assign() method copies all enumerable own properties from one or more source objects to a target object.
|
static java.lang.Object |
create(java.lang.Object proto)
The Object.create() method creates a new object, using an existing object as the prototype of the newly created object.
|
static java.lang.Object |
create(java.lang.Object proto,
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
The Object.create() method creates a new object, using an existing object as the prototype of the newly created object.
|
static void |
defineProperties(java.lang.Object obj,
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object.
|
static void |
defineProperty(java.lang.Object obj,
java.lang.String prop,
ObjectPropertyDescriptor descriptor)
The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
|
static void |
defineProperty(java.lang.Object obj,
Symbol prop,
ObjectPropertyDescriptor descriptor)
The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
|
static JsArray<ObjectPropertyEntry> |
entries(java.lang.Object obj)
The Object.entries() method returns an array of a given object's own enumerable string-keyed property [key, value] pairs, in the same order as that provided by a for...in loop.
|
static void |
freeze(java.lang.Object obj)
The Object.freeze() method freezes an object.
|
static java.lang.Object |
fromEntries(JsIterable<ObjectPropertyEntry> iterable)
The Object.fromEntries() method transforms a list of key-value pairs into an object.
|
static ObjectPropertyDescriptor |
getOwnPropertyDescriptor(java.lang.Object obj,
java.lang.String prop)
The Object.getOwnPropertyDescriptor() method returns an object describing the configuration of a specific property on a given object (that is, one directly present on an object and not in the object's prototype chain).
|
static ObjectPropertyDescriptor |
getOwnPropertyDescriptor(java.lang.Object obj,
Symbol prop)
The Object.getOwnPropertyDescriptor() method returns an object describing the configuration of a specific property on a given object (that is, one directly present on an object and not in the object's prototype chain).
|
static jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> |
getOwnPropertyDescriptors(java.lang.Object obj)
The Object.getOwnPropertyDescriptors() method returns all own property descriptors of a given object.
|
static JsArray<java.lang.String> |
getOwnPropertyNames(java.lang.Object obj)
The Object.getOwnPropertyNames() method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly in a given object.
|
static JsArray<Symbol> |
getOwnPropertySymbols(java.lang.Object obj)
The Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object.
|
static java.lang.Object |
getPrototypeOf(java.lang.Object obj)
The Object.getPrototypeOf() method returns the prototype (i.e.
|
static boolean |
is(java.lang.Object value1,
java.lang.Object value2)
The Object.is() method determines whether two values are the same value.
|
static boolean |
isExtensible(java.lang.Object obj)
The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it).
|
static boolean |
isFrozen(java.lang.Object obj)
The Object.isFrozen() determines if an object is frozen.
|
static boolean |
isSealed(java.lang.Object obj)
The Object.isSealed() method determines if an object is sealed.
|
static JsArray<java.lang.String> |
keys(java.lang.Object obj)
The Object.keys() method returns an array of a given object's own enumerable property names, iterated in the same order that a normal loop would.
|
static void |
preventExtensions(java.lang.Object obj)
The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e.
|
static void |
seal(java.lang.Object obj)
The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable.
|
static void |
setPrototypeOf(java.lang.Object obj,
java.lang.Object prototype)
The Object.setPrototypeOf() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null.
|
jsinterop.base.Any |
valueOf_()
The valueOf() method returns the wrapped primitive value of a Number object.
|
static JsArray<jsinterop.base.Any> |
values(java.lang.Object obj)
The Object.values() method returns an array of a given object's own enumerable property values, in the same order as that provided by a for...in loop.
|
@JsOverlay
@Nonnull
public static java.lang.Object assign(@Nonnull
java.lang.Object target,
@Nonnull
java.lang.Object... sources)
@JsOverlay
@Nonnull
public static java.lang.Object create(@Nullable
java.lang.Object proto,
@Nullable
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
@JsOverlay
@Nonnull
public static java.lang.Object create(@Nullable
java.lang.Object proto)
@JsOverlay
public static void defineProperties(@Nonnull
java.lang.Object obj,
@Nonnull
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
@JsOverlay
public static void defineProperty(@Nonnull
java.lang.Object obj,
@Nonnull
java.lang.String prop,
@Nonnull
ObjectPropertyDescriptor descriptor)
@JsOverlay
public static void defineProperty(@Nonnull
java.lang.Object obj,
@Nonnull
Symbol prop,
@Nonnull
ObjectPropertyDescriptor descriptor)
@JsOverlay @Nonnull public static JsArray<ObjectPropertyEntry> entries(@Nonnull java.lang.Object obj)
@JsOverlay
public static void freeze(@Nonnull
java.lang.Object obj)
@Nonnull
public static java.lang.Object fromEntries(@Nonnull
JsIterable<ObjectPropertyEntry> iterable)
@JsOverlay @Nullable public static ObjectPropertyDescriptor getOwnPropertyDescriptor(@Nonnull java.lang.Object obj, @Nonnull java.lang.String prop)
@JsOverlay @Nullable public static ObjectPropertyDescriptor getOwnPropertyDescriptor(@Nonnull java.lang.Object obj, @Nonnull Symbol prop)
@JsOverlay @Nonnull public static jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> getOwnPropertyDescriptors(@Nonnull java.lang.Object obj)
@JsOverlay @Nonnull public static JsArray<java.lang.String> getOwnPropertyNames(@Nonnull java.lang.Object obj)
@JsOverlay @Nonnull public static JsArray<Symbol> getOwnPropertySymbols(@Nonnull java.lang.Object obj)
@JsOverlay
@Nullable
public static java.lang.Object getPrototypeOf(@Nonnull
java.lang.Object obj)
public static boolean is(@Nonnull
java.lang.Object value1,
@Nonnull
java.lang.Object value2)
@JsOverlay
public static boolean isExtensible(@Nonnull
java.lang.Object obj)
@JsOverlay
public static boolean isFrozen(@Nonnull
java.lang.Object obj)
@JsOverlay
public static boolean isSealed(@Nonnull
java.lang.Object obj)
@JsOverlay @Nonnull public static JsArray<java.lang.String> keys(@Nonnull java.lang.Object obj)
@JsOverlay
public static void preventExtensions(@Nonnull
java.lang.Object obj)
@JsOverlay
public static void seal(@Nonnull
java.lang.Object obj)
@JsOverlay
public static void setPrototypeOf(@Nonnull
java.lang.Object obj,
@Nonnull
java.lang.Object prototype)
@JsOverlay @Nonnull public static JsArray<jsinterop.base.Any> values(@Nonnull java.lang.Object obj)
@JsMethod(name="valueOf") public jsinterop.base.Any valueOf_()