object Reflect
- Source
- Reflect.scala
- Alphabetic
- By Inheritance
- Reflect
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- val ^: Any
- Annotations
- @JSGlobal("Reflect") @native()
- def apply(target: scala.scalajs.js.Function, thisArgument: Any, argumentsList: ArrayLike[Any]): Any
Calls the function with the specified object as the this value and the elements of specified array as the arguments.
Calls the function with the specified object as the this value and the elements of specified array as the arguments.
- target
The function to call.
- thisArgument
The object to be used as the this object.
- argumentsList
An array of argument values to be passed to the function.
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def construct(target: scala.scalajs.js.Function, argumentsList: ArrayLike[Any], newTarget: scala.scalajs.js.Function): Any
- Annotations
- @inline()
- def construct(target: scala.scalajs.js.Function, argumentsList: ArrayLike[Any]): Any
Constructs the target with the elements of specified array as the arguments and the specified constructor as the
new.targetvalue.Constructs the target with the elements of specified array as the arguments and the specified constructor as the
new.targetvalue.- target
The constructor to invoke.
- argumentsList
An array of argument values to be passed to the constructor.
- Annotations
- @inline()
- def defineProperty(target: scala.scalajs.js.Object, propertyKey: PropertyKey, attributes: scala.scalajs.js.PropertyDescriptor): scala.Boolean
Adds a property to an object, or modifies attributes of an existing property.
Adds a property to an object, or modifies attributes of an existing property.
- target
Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
- propertyKey
The property name.
- attributes
Descriptor for the property. It can be for a data property or an accessor property.
- Annotations
- @inline()
- def deleteProperty(target: scala.scalajs.js.Object, propertyKey: PropertyKey): scala.Boolean
Removes a property from an object, equivalent to
delete target[propertyKey], except it won't throw iftarget[propertyKey]is non-configurable.Removes a property from an object, equivalent to
delete target[propertyKey], except it won't throw iftarget[propertyKey]is non-configurable.- target
Object from which to remove the own property.
- propertyKey
The property name.
- Annotations
- @inline()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def get(target: scala.scalajs.js.Object, propertyKey: PropertyKey, receiver: Any): Any
- Annotations
- @inline()
- def get(target: scala.scalajs.js.Object, propertyKey: PropertyKey): Any
Gets the property of target, equivalent to
target[propertyKey]whenreceiver === target.Gets the property of target, equivalent to
target[propertyKey]whenreceiver === target.- target
Object that contains the property on itself or in its prototype chain.
- propertyKey
The property name.
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getOwnPropertyDescriptor(target: scala.scalajs.js.Object, propertyKey: PropertyKey): UndefOr[scala.scalajs.js.PropertyDescriptor]
Gets the own property descriptor of the specified object.
Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
- target
Object that contains the property.
- propertyKey
The property name.
- Annotations
- @inline()
- def getPrototypeOf(target: scala.scalajs.js.Object): |[scala.scalajs.js.Object, Null]
Returns the prototype of an object.
Returns the prototype of an object.
- target
The object that references the prototype.
- Annotations
- @inline()
- def has(target: scala.scalajs.js.Object, propertyKey: PropertyKey): scala.Boolean
Equivalent to
propertyKey in target.Equivalent to
propertyKey in target.- target
Object that contains the property on itself or in its prototype chain.
- propertyKey
Name of the property.
- Annotations
- @inline()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isExtensible(target: scala.scalajs.js.Object): scala.Boolean
Returns a value that indicates whether new properties can be added to an object.
Returns a value that indicates whether new properties can be added to an object.
- target
Object to test.
- Annotations
- @inline()
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def ownKeys(target: scala.scalajs.js.Object): scala.scalajs.js.Array[|[java.lang.String, scala.scalajs.js.Symbol]]
Returns the string and symbol keys of the own properties of an object.
Returns the string and symbol keys of the own properties of an object. The own properties of an object are those that are defined directly on that object, and are not inherited from the object's prototype.
- target
Object that contains the own properties.
- Annotations
- @inline()
- def preventExtensions(target: scala.scalajs.js.Object): scala.Boolean
Prevents the addition of new properties to an object.
Prevents the addition of new properties to an object.
- target
Object to make non-extensible.
- returns
Whether the object has been made non-extensible.
- Annotations
- @inline()
- def set(target: scala.scalajs.js.Object, propertyKey: PropertyKey, value: Any, receiver: Any): scala.Boolean
- Annotations
- @inline()
- def set(target: scala.scalajs.js.Object, propertyKey: PropertyKey, value: Any): scala.Boolean
Sets the property of target, equivalent to
target[propertyKey] = valuewhenreceiver === target.Sets the property of target, equivalent to
target[propertyKey] = valuewhenreceiver === target.- target
Object that contains the property on itself or in its prototype chain.
- propertyKey
Name of the property.
- Annotations
- @inline()
- def setPrototypeOf(target: scala.scalajs.js.Object, proto: scala.scalajs.js.Object): scala.Boolean
- Annotations
- @inline()
- def setPrototypeOf(target: scala.scalajs.js.Object): scala.Boolean
Sets the prototype of a specified object o to object proto or null.
Sets the prototype of a specified object o to object proto or null.
- target
The object to change its prototype.
- returns
Whether setting the prototype was successful.
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated