object TypeEnv
- Source
- SpecializeTypes.scala
- Alphabetic
- By Inheritance
- TypeEnv
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromSpecialization(sym: Global.Symbol, args: List[Global.Type]): TypeEnv
Return a new type environment binding specialized type parameters of sym to the given args.
Return a new type environment binding specialized type parameters of sym to the given args. Expects the lists to have the same length.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def includes(t1: TypeEnv, t2: TypeEnv): Boolean
Does typeenv
t1
includet2
? All type variables int1
are defined int2
and:Does typeenv
t1
includet2
? All type variables int1
are defined int2
and:- are bound to the same type, or
- are an AnyRef specialization and
t2
is bound to a subtype of AnyRef
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValid(env: TypeEnv, sym: Global.Symbol): Boolean
Is the given environment a valid specialization for sym? It is valid if each binding is from a @specialized type parameter in sym (or its owner) to a type for which
sym
is specialized. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def restrict(env: TypeEnv, tps: Set[Global.Symbol]): TypeEnv
Reduce the given environment to contain mappings only for type variables in tps.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
The Scala compiler and reflection APIs.