final class ConstructorTag[T <: Any] extends AnyVal
Stores the JS constructor function of a JS class.
A ConstructorTag[T]
holds the constructor function of a JS class, as
retrieved by js.constructorOf[T]
. Similarly to
ClassTags, ConstructorTag
s can be implicitly
materialized when T
is statically known to be a JS class, i.e., a valid
type argument to js.constructorOf
.
- Alphabetic
- By Inheritance
- ConstructorTag
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to any2stringadd[ConstructorTag[T]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ConstructorTag[T], B)
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to ArrowAssoc[ConstructorTag[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val constructor: Dynamic
-
def
ensuring(cond: (ConstructorTag[T]) ⇒ Boolean, msg: ⇒ scala.Any): ConstructorTag[T]
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to Ensuring[ConstructorTag[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ConstructorTag[T]) ⇒ Boolean): ConstructorTag[T]
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to Ensuring[ConstructorTag[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ scala.Any): ConstructorTag[T]
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to Ensuring[ConstructorTag[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ConstructorTag[T]
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to Ensuring[ConstructorTag[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
newInstance(args: scala.Any*): T
Instantiates the class
T
with the specified arguments.Instantiates the class
T
with the specified arguments.Note that, unlike js.Dynamic.newInstance, this method accepts
scala.Any
s as parameters. -
def
toString(): String
- Definition Classes
- Any
-
def
→[B](y: B): (ConstructorTag[T], B)
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to ArrowAssoc[ConstructorTag[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] to StringFormat[ConstructorTag[T]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.