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, ConstructorTags 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
- Protected
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] toany2stringadd[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] toArrowAssoc[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] toEnsuring[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] toEnsuring[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] toEnsuring[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] toEnsuring[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
Twith the specified arguments.Instantiates the class
Twith the specified arguments.Note that, unlike js.Dynamic.newInstance, this method accepts
scala.Anys as parameters. - def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] toStringFormat[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,formattedresolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ConstructorTag[T], B)
- Implicit
- This member is added by an implicit conversion from ConstructorTag[T] toArrowAssoc[ConstructorTag[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.