scala.reflect.internal.transform.Erasure

ScalaErasureMap

class ScalaErasureMap extends ErasureMap

Scala's more precise erasure than java's is problematic as follows:

For this reason and others (such as distinguishing constructors from other methods) erasure is now (Symbol, Type) => Type rather than Type => Type.

Source
Erasure.scala
Linear Supertypes
ErasureMap, TypeMap, (Type) ⇒ Type, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaErasureMap
  2. ErasureMap
  3. TypeMap
  4. Function1
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaErasureMap()

Type Members

  1. class TypeMapTransformer extends Transformer

    This transformer leaves the tree alone except to remap its types.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (ScalaErasureMap, B)

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to ArrowAssoc[ScalaErasureMap] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def andThen[A](g: (Type) ⇒ A): (Type) ⇒ A

    Definition Classes
    Function1
  9. def apply(tp: Type): Type

    Definition Classes
    ErasureMapTypeMap → Function1
  10. def applyInArray(tp: Type): Type

    Definition Classes
    ErasureMap
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def compose[A](g: (A) ⇒ Type): (A) ⇒ Type

    Definition Classes
    Function1
  14. def ensuring(cond: (ScalaErasureMap) ⇒ Boolean, msg: ⇒ Any): ScalaErasureMap

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to Ensuring[ScalaErasureMap] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (ScalaErasureMap) ⇒ Boolean): ScalaErasureMap

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to Ensuring[ScalaErasureMap] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): ScalaErasureMap

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to Ensuring[ScalaErasureMap] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): ScalaErasureMap

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to Ensuring[ScalaErasureMap] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def eraseDerivedValueClassRef(clazz: Symbol): Type

    Attributes
    protected
    Definition Classes
    ErasureMap
  21. def eraseNormalClassRef(pre: Type, clazz: Symbol): Type

    Definition Classes
    ErasureMap
  22. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def mapOver(tree: Tree, giveup: () ⇒ Nothing): Tree

    Map a tree that is part of an annotation argument.

    Map a tree that is part of an annotation argument. If the tree cannot be mapped, then invoke giveup(). The default is to transform the tree with TypeMapTransformer.

    Definition Classes
    TypeMap
  28. def mapOver(tree: Tree): Tree

    Definition Classes
    TypeMap
  29. def mapOver(annot: AnnotationInfo): AnnotationInfo

    Definition Classes
    TypeMap
  30. def mapOver(origSyms: List[Symbol]): List[Symbol]

    Map this function over given list of symbols

    Map this function over given list of symbols

    Definition Classes
    TypeMap
  31. def mapOver(scope: Scope): Scope

    Map this function over given scope

    Map this function over given scope

    Definition Classes
    TypeMap
  32. def mapOver(tp: Type): Type

    Map this function over given type

    Map this function over given type

    Definition Classes
    TypeMap
  33. def mapOverAnnotArgs(args: List[Tree]): List[Tree]

    Map over a set of annotation arguments.

    Map over a set of annotation arguments. If any of the arguments cannot be mapped, then return Nil.

    Definition Classes
    TypeMap
  34. def mapOverAnnotations(annots: List[AnnotationInfo]): List[AnnotationInfo]

    Definition Classes
    TypeMap
  35. def mapOverArgs(args: List[Type], tparams: List[Symbol]): List[Type]

    Attributes
    protected
    Definition Classes
    TypeMap
  36. def mergeParents(parents: List[Type]): Type

    In scala, calculate a useful parent.

    In scala, calculate a useful parent. An intersection such as Object with Trait erases to Trait.

    Definition Classes
    ScalaErasureMapErasureMap
  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. def noChangeToSymbols(origSyms: List[Symbol]): Boolean

    Called by mapOver to determine whether the original symbols can be returned, or whether they must be cloned.

    Called by mapOver to determine whether the original symbols can be returned, or whether they must be cloned. Overridden in VariantTypeMap.

    Attributes
    protected
    Definition Classes
    TypeMap
  39. final def notify(): Unit

    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  41. val self: Any

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  42. val self: Any

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  45. def variance: Int

    Mix in VariantTypeMap if you want variances to be significant.

    Mix in VariantTypeMap if you want variances to be significant.

    Definition Classes
    TypeMap
  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. def [B](y: B): (ScalaErasureMap, B)

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to ArrowAssoc[ScalaErasureMap] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: ScalaErasureMap

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to ArrowAssoc[ScalaErasureMap] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: ScalaErasureMap

    Implicit information
    This member is added by an implicit conversion from ScalaErasureMap to Ensuring[ScalaErasureMap] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from ErasureMap

Inherited from TypeMap

Inherited from (Type) ⇒ Type

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from ScalaErasureMap to StringFormat

Inherited by implicit conversion any2stringadd from ScalaErasureMap to StringAdd

Inherited by implicit conversion any2ArrowAssoc from ScalaErasureMap to ArrowAssoc[ScalaErasureMap]

Inherited by implicit conversion any2Ensuring from ScalaErasureMap to Ensuring[ScalaErasureMap]