scala.reflect.internal.Types

Type

abstract class Type extends AbsTypeImpl with Annotatable[Type]

The base class for all types

Definition Classes
Types → Types
Source
Types.scala
Linear Supertypes
Annotatable[Type], AbsTypeImpl, AbsType, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Type
  2. Annotatable
  3. AbsTypeImpl
  4. AbsType
  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 Type()

Type Members

  1. class FilterMapForeach extends FilterTypeCollector

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 Type to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Type, B)

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

    Is this type a subtype of that type?

    Is this type a subtype of that type?

    Definition Classes
    Type → AbsType
  7. def =:=(that: Type): Boolean

    Is this type equivalent to that type?

    Is this type equivalent to that type?

    Definition Classes
    Type → AbsType
  8. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  10. def annotations: List[AnnotationInfo]

    The annotations on this type.

    The annotations on this type.

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

    Definition Classes
    Any
  12. def asSeenFrom(pre: Type, clazz: Symbol): Type

    This type as seen from prefix pre and class clazz.

    This type as seen from prefix pre and class clazz. This means: Replace all thistypes of clazz or one of its subclasses by pre and instantiate all parameters by arguments of pre. Proceed analogously for thistypes referring to outer classes.

    Example: class D[T] { def m: T } class C extends p.D[Int] T.asSeenFrom(ThisType(C), D) (where D is owner of m)

    Int

    Definition Classes
    Type → AbsType
  13. def atOwner(owner: Symbol): Type

    Make sure this type is correct as the info of given owner; clone it if not.

  14. def baseClasses: List[Symbol]

    The list of all baseclasses of this type (including its own typeSymbol) in reverse linearization order, starting with the class itself and ending in class Any.

    The list of all baseclasses of this type (including its own typeSymbol) in reverse linearization order, starting with the class itself and ending in class Any.

    Definition Classes
    Type → AbsType
  15. def baseType(clazz: Symbol): Type

    The least type instance of given class which is a supertype of this type.

    The least type instance of given class which is a supertype of this type. Example: class D[T] class C extends p.D[Int] ThisType(C).baseType(D) = p.D[Int]

    Definition Classes
    Type → AbsType
  16. def baseTypeIndex(sym: Symbol): Int

    sym

    the class symbol

    returns

    the index of given class symbol in the BaseTypeSeq of this type, or -1 if no base type with given class symbol exists.

  17. def baseTypeSeq: BaseTypeSeq

    The shortest sorted upwards closed array of types that contains this type as first element.

    The shortest sorted upwards closed array of types that contains this type as first element.

    A list or array of types ts is upwards closed if

    for all t in ts: for all typerefs p.s[args] such that t <: p.s[args] there exists a typeref p'.s[args'] in ts such that t <: p'.s['args] <: p.s[args],

    and

    for all singleton types p.s such that t <: p.s there exists a singleton type p'.s in ts such that t <: p'.s <: p.s

    Sorting is with respect to Symbol.isLess() on type symbols.

  18. def baseTypeSeqDepth: Int

    The maximum depth (@see maxDepth) of each type in the BaseTypeSeq of this type.

  19. def boundSyms: Set[Symbol]

    For a (potentially wrapped) poly or existential type, its bound symbols, the empty list for all other types

  20. def bounds: TypeBounds

    For a TypeBounds type, itself; for a reference denoting an abstract type, its bounds, for all other types, a TypeBounds type all of whose bounds are this type.

  21. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def cloneInfo(owner: Symbol): Type

    If this is a poly- or methodtype, a copy with cloned type / value parameters owned by owner.

    If this is a poly- or methodtype, a copy with cloned type / value parameters owned by owner. Identity for all other types.

  23. def collect[T](pf: PartialFunction[Type, T]): List[T]

    Apply pf' to each part of this type on which the function is defined

  24. def complete(sym: Symbol): Unit

    If this is a lazy type, assign a new type to sym.

  25. def computeMemberType(sym: Symbol): Type

  26. def contains(sym: Symbol): Boolean

    Does this type contain a reference to this symbol?

    Does this type contain a reference to this symbol?

    Definition Classes
    Type → AbsType
  27. def containsTp(tp: Type): Boolean

    Does this type contain a reference to this type

  28. def dealias: Type

    Expands type aliases.

  29. def decl(name: Name): Symbol

    The defined or declared members with name name in this type; an OverloadedSymbol if several exist, NoSymbol if none exist.

    The defined or declared members with name name in this type; an OverloadedSymbol if several exist, NoSymbol if none exist. Alternatives of overloaded symbol appear in the order they are declared.

  30. def declaration(name: Name): Symbol

    Definition Classes
    AbsTypeImpl → AbsType
  31. def declarations: Scope

    Definition Classes
    AbsTypeImpl → AbsType
  32. def decls: Scope

    For a classtype or refined type, its defined or declared members; inherited by subtypes and typerefs.

    For a classtype or refined type, its defined or declared members; inherited by subtypes and typerefs. The empty scope for all other types.

  33. def deconst: Type

    Map a constant type or not-null-type to its underlying base type, identity for all other types.

  34. def deferredMembers: List[Symbol]

    A list of all deferred symbols of this type (defined or inherited)

  35. def directObjectString: String

    The string representation of this type when the direct object in a sentence.

    The string representation of this type when the direct object in a sentence. Normally this is no different from the regular representation, but modules read better as "object Foo" here and "Foo.type" the rest of the time.

  36. def dummyArgs: List[Type]

    A list of placeholder types derived from the type parameters.

    A list of placeholder types derived from the type parameters. Used by RefinedType and TypeRef.

    Attributes
    protected
  37. def ensuring(cond: (Type) ⇒ Boolean, msg: ⇒ Any): Type

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  43. def erasure: Type

    Definition Classes
    AbsTypeImpl → AbsType
  44. def exists(p: (Type) ⇒ Boolean): Boolean

    Is there part of this type which satisfies predicate p?

    Is there part of this type which satisfies predicate p?

    Definition Classes
    Type → AbsType
  45. def filter(p: (Type) ⇒ Boolean): List[Type]

    Returns all parts of this type which satisfy predicate p

  46. def filterAnnotations(p: (AnnotationInfo) ⇒ Boolean): Type

    Definition Classes
    TypeAnnotatable
  47. def finalResultType: Type

    For a curried/nullary method or poly type its non-method result type, the type itself for all other types

  48. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. def find(p: (Type) ⇒ Boolean): Option[Type]

    Returns optionally first type (in a preorder traversal) which satisfies predicate p, or None if none exists.

    Returns optionally first type (in a preorder traversal) which satisfies predicate p, or None if none exists.

    Definition Classes
    Type → AbsType
  50. def findMember(name: Name, excludedFlags: Long, requiredFlags: Long, stableOnly: Boolean): Symbol

    Find member(s) in this type.

    Find member(s) in this type. If several members matching criteria are found, they are returned in an OverloadedSymbol

    name

    The member's name, where nme.ANYNAME means unspecified

    excludedFlags

    Returned members do not have these flags

    requiredFlags

    Returned members do have these flags

    stableOnly

    If set, return only members that are types or stable values

  51. def firstParent: Type

    For a class with nonEmpty parents, the first parent.

    For a class with nonEmpty parents, the first parent. Otherwise some specific fixed top type.

  52. def foreach(f: (Type) ⇒ Unit): Unit

    Apply f to each part of this type

    Apply f to each part of this type

    Definition Classes
    Type → AbsType
  53. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Type to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  54. def getAnnotation(cls: Symbol): Option[AnnotationInfo]

    Definition Classes
    Annotatable
  55. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  56. def hasAnnotation(cls: Symbol): Boolean

    Test for, get, or remove an annotation

    Test for, get, or remove an annotation

    Definition Classes
    Annotatable
  57. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  58. def implicitMembers: List[Symbol]

    A list of all implicit symbols of this type (defined or inherited)

  59. def instantiateTypeParams(formals: List[Symbol], actuals: List[Type]): Type

    Replace formal type parameter symbols with actual type arguments.

    Replace formal type parameter symbols with actual type arguments.

    Amounts to substitution except for higher-kinded types. (See overridden method in TypeRef) -- @M

  60. def isComplete: Boolean

    Is this type completed (i.

    Is this type completed (i.e. not a lazy type)?

  61. def isConcrete: Boolean

    Definition Classes
    AbsTypeImpl → AbsType
  62. def isDependent: Boolean

    Does this depend on an enclosing method parameter?

  63. def isErroneous: Boolean

    Is this type produced as a repair for an error?

  64. def isError: Boolean

    Is this type produced as a repair for an error?

  65. def isFinalType: Boolean

    Can this type only be subtyped by bottom types? This is assessed to be the case if the class is final, and all type parameters (if any) are invariant.

  66. def isGround: Boolean

    A test whether a type contains any unification type variables.

    A test whether a type contains any unification type variables. Overridden with custom logic except where trivially true.

  67. def isHigherKinded: Boolean

    Is this type higher-kinded, i.

    Is this type higher-kinded, i.e., is it a type constructor @M

    Definition Classes
    Type → AbsType
  68. def isImmediatelyDependent: Boolean

    Does this type depend immediately on an enclosing method parameter? I.

    Does this type depend immediately on an enclosing method parameter? I.e., is it a singleton type whose termSymbol refers to an argument of the symbol's owner (which is a method)?

  69. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  70. def isNotNull: Boolean

    Is this type guaranteed not to have null as a value?

  71. def isSpliceable: Boolean

    Definition Classes
    AbsTypeImpl → AbsType
  72. def isStable: Boolean

    Does this type denote a stable reference (i.

    Does this type denote a stable reference (i.e. singleton type)?

  73. def isStructuralRefinement: Boolean

    Is this type a structural refinement type (it refines members that have not been inherited)

  74. def isTrivial: Boolean

    Types for which asSeenFrom always is the identity, no matter what prefix or owner.

  75. def isVolatile: Boolean

    Is this type dangerous (i.

    Is this type dangerous (i.e. it might contain conflicting type information when empty, so that it can be constructed so that type unsoundness results.) A dangerous type has an underlying type of the form T_1 with T_n { decls }, where one of the T_i (i > 1) is an abstract type.

  76. def isWildcard: Boolean

    True for WildcardType or BoundedWildcardType.

  77. def kind: String

    The kind of this type; used for debugging

    The kind of this type; used for debugging

    Definition Classes
    Type → AbsType
  78. def load(sym: Symbol): Unit

    If this is a symbol loader type, load and assign a new type to sym.

  79. def looselyMatches(that: Type): Boolean

    Same as matches, except that non-method types are always assumed to match.

  80. def map(f: (Type) ⇒ Type): Type

    Apply f to each part of this type; children get mapped before their parents

    Apply f to each part of this type; children get mapped before their parents

    Definition Classes
    Type → AbsType
  81. def matches(that: Type): Boolean

    Is this type close enough to that type so that members with the two type would override each other? This means:

    Is this type close enough to that type so that members with the two type would override each other? This means:

    • Either both types are polytypes with the same number of type parameters and their result types match after renaming corresponding type parameters
    • Or both types are (nullary) method types with equivalent type parameter types and matching result types
    • Or both types are equivalent
    • Or phase.erasedTypes is false and both types are neither method nor poly types.
  82. def matchesPattern(that: Type): Boolean

    Is this type a subtype of that type in a pattern context? Any type arguments on the right hand side are replaced with fresh existentials, except for Arrays.

    Is this type a subtype of that type in a pattern context? Any type arguments on the right hand side are replaced with fresh existentials, except for Arrays.

    See bug1434.scala for an example of code which would fail if only a <:< test were applied.

  83. def member(name: Name): Symbol

    The member with given name, an OverloadedSymbol if several exist, NoSymbol if none exist

    The member with given name, an OverloadedSymbol if several exist, NoSymbol if none exist

    Definition Classes
    Type → AbsType
  84. def memberBasedOnName(name: Name, excludedFlags: Long): Symbol

  85. def memberInfo(sym: Symbol): Type

    The info of sym, seen as a member of this type.

    The info of sym, seen as a member of this type.

    Example:

    class D[T] { def m: T }
    class C extends p.D[Int]
    ThisType(C).memberType(m) = Int
  86. def memberType(sym: Symbol): Type

    The type of sym, seen as a member of this type.

  87. def members: List[Symbol]

    A list of all members of this type (defined or inherited) Members appear in linearization order of their owners.

    A list of all members of this type (defined or inherited) Members appear in linearization order of their owners. Members with the same owner appear in reverse order of their declarations.

    Definition Classes
    Type → AbsType
  88. def membersBasedOnFlags(excludedFlags: Long, requiredFlags: Long): List[Symbol]

    Members excluding and requiring the given flags.

    Members excluding and requiring the given flags. Note: unfortunately it doesn't work to exclude DEFERRED this way.

  89. def membersWithFlags(requiredFlags: Long): List[Symbol]

    All members with the given flags, excluding bridges.

  90. def narrow: Type

    Map to a singleton type which is a subtype of this type.

    Map to a singleton type which is a subtype of this type. The fallback implemented here gives:

    T.narrow  =  (T {}).this.type

    Overridden where we know more about where types come from.

  91. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  92. def nonLocalMember(name: Name): Symbol

    The non-local member with given name, an OverloadedSymbol if several exist, NoSymbol if none exist

  93. def nonPrivateDecl(name: Name): Symbol

    The non-private defined or declared members with name name in this type; an OverloadedSymbol if several exist, NoSymbol if none exist.

    The non-private defined or declared members with name name in this type; an OverloadedSymbol if several exist, NoSymbol if none exist. Alternatives of overloaded symbol appear in the order they are declared.

  94. def nonPrivateDeclaration(name: Name): Symbol

    Definition Classes
    AbsTypeImpl
  95. def nonPrivateDecls: List[Symbol]

    A list of all non-private members defined or declared in this type.

  96. def nonPrivateMember(name: Name): Symbol

    The non-private member with given name, an OverloadedSymbol if several exist, NoSymbol if none exist.

    The non-private member with given name, an OverloadedSymbol if several exist, NoSymbol if none exist. Bridges are excluded from the result

    Definition Classes
    Type → AbsType
  97. def nonPrivateMemberAdmitting(name: Name, admit: Long): Symbol

    The non-private member with given name, admitting members with given flags admit.

    The non-private member with given name, admitting members with given flags admit. "Admitting" refers to the fact that members with a PRIVATE, BRIDGE, or VBRIDGE flag are usually excluded from findMember results, but supplying any of those flags to this method disables that exclusion.

    An OverloadedSymbol if several exist, NoSymbol if none exists.

  98. def nonPrivateMembers: List[Symbol]

    A list of all non-private members of this type (defined or inherited)

    A list of all non-private members of this type (defined or inherited)

    Definition Classes
    Type → AbsType
  99. def nonPrivateMembersAdmitting(admit: Long): List[Symbol]

    A list of all non-private members of this type (defined or inherited), admitting members with given flags admit

  100. def nonPrivateMembersWithFlags(requiredFlags: Long): List[Symbol]

    All non-private members with the given flags, excluding bridges.

  101. def normalize: Type

    Reduce to beta eta-long normal form.

    Reduce to beta eta-long normal form. Expands type aliases and converts higher-kinded TypeRefs to PolyTypes. Functions on types are also implemented as PolyTypes.

    Example: (in the below, <List> is the type constructor of List) TypeRef(pre, <List>, List()) is replaced by PolyType(X, TypeRef(pre, <List>, List(X)))

    Definition Classes
    Type → AbsType
  102. def notNull: Type

    Mixin a NotNull trait unless type already has one .

    Mixin a NotNull trait unless type already has one ...if the option is given, since it is causing typing bugs.

  103. final def notify(): Unit

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

    Definition Classes
    AnyRef
  105. def objectPrefix: String

    Attributes
    protected
  106. def packagePrefix: String

    Attributes
    protected
  107. def paramSectionCount: Int

    For a method type, the number of its value parameter sections, 0 for all other types

  108. def paramTypes: List[Type]

    For a method or poly type, the types of its first value parameter section, the empty list for all other types

  109. def params: List[Symbol]

    For a method or poly type, its first value parameter section, the empty list for all other types

  110. def paramss: List[List[Symbol]]

    For a method or poly type, a list of its value parameter sections, the empty list for all other types

  111. def parents: List[Type]

    For a class or intersection type, its parents.

    For a class or intersection type, its parents. For a TypeBounds type, the parents of its hi bound. inherited by typerefs, singleton types, and refinement types, The empty list for all other types

    Definition Classes
    Type → AbsType
  112. def prefix: Type

    For a typeref or single-type, the prefix of the normalized type (@see normalize).

    For a typeref or single-type, the prefix of the normalized type (@see normalize). NoType for all other types.

  113. def prefixChain: List[Type]

    A chain of all typeref or singletype prefixes of this type, longest first.

    A chain of all typeref or singletype prefixes of this type, longest first. (Only used from safeToString.)

  114. def prefixString: String

    The string representation of this type used as a prefix

  115. def remove(clazz: Symbol): Type

    If this is a TypeRef clazz[T], return the argument T otherwise return this type

  116. def removeAnnotation(cls: Symbol): Type

    Definition Classes
    Annotatable
  117. def resultApprox: Type

    Only used for dependent method types.

  118. def resultType(actuals: List[Type]): Type

  119. def resultType: Type

    For a (nullary) method or poly type, its direct result type, the type itself for all other types.

  120. def safeToString: String

    Method to be implemented in subclasses.

    Method to be implemented in subclasses. Converts this type to a string in calling toString for its parts.

  121. val self: Any

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

    Implicit information
    This member is added by an implicit conversion from Type to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  123. def selfsym: Symbol

    The selfsym of an annotated type, or NoSymbol of anything else

  124. def setAnnotations(annots: List[AnnotationInfo]): Type

    Definition Classes
    TypeAnnotatable
  125. def skolemizeExistential: Type

    A simple version of skolemizeExistential for situations where owner or unpack location do not matter (typically used in subtype tests)

  126. def skolemizeExistential(owner: Symbol, origin: AnyRef): Type

    If this type is an existential, turn all existentially bound variables to type skolems.

    If this type is an existential, turn all existentially bound variables to type skolems.

    owner

    The owner of the created type skolems

    origin

    The tree whose type was an existential for which the skolem was created.

  127. def skolemsExceptMethodTypeParams: List[Symbol]

    The (existential or otherwise) skolems and existentially quantified variables which are free in this type

  128. def specializes(sym: Symbol): Boolean

    Does this type implement symbol sym with same or stronger type?

  129. def stat_<:<(that: Type): Boolean

  130. def stripAnnotations: Type

    Remove any annotations from this type and from any types embedded in this type.

  131. def subst(from: List[Symbol], to: List[Type]): Type

    Substitute types to for occurrences of references to symbols from in this type.

  132. def substSym(from: List[Symbol], to: List[Symbol]): Type

    Substitute symbols to for occurrences of symbols from in this type.

    Substitute symbols to for occurrences of symbols from in this type.

    !!! NOTE !!!: If you need to do a substThis and a substSym, the substThis has to come first, as otherwise symbols will immediately get rebound in typeRef to the old symbol.

  133. def substThis(from: Symbol, to: Symbol): Type

  134. def substThis(from: Symbol, to: Type): Type

    Substitute all occurrences of ThisType(from) in this type by to.

    Substitute all occurrences of ThisType(from) in this type by to.

    !!! NOTE !!!: If you need to do a substThis and a substSym, the substThis has to come first, as otherwise symbols will immediately get rebound in typeRef to the old symbol.

  135. def substThisAndSym(from: Symbol, to: Type, symsFrom: List[Symbol], symsTo: List[Symbol]): Type

    Performs both substThis and substSym in one traversal.

  136. def substituteTypes(from: List[Symbol], to: List[Type]): Type

    Definition Classes
    AbsTypeImpl → AbsType
  137. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  138. def termSymbol: Symbol

    The term symbol associated with the type Note that the symbol of the normalized type is returned (@see normalize)

  139. def termSymbolDirect: Symbol

    The term symbol directly associated with the type.

  140. def throwsAnnotations(): List[Symbol]

    Symbols of any @throws annotations on this symbol.

    Symbols of any @throws annotations on this symbol.

    Definition Classes
    Annotatable
  141. def toLongString: String

    The string representation of this type, with singletypes explained.

  142. def toString(): String

    Convert toString avoiding infinite recursions by cutting off after maxTostringRecursions recursion levels.

    Convert toString avoiding infinite recursions by cutting off after maxTostringRecursions recursion levels. Uses safeToString to produce a string on each level.

    Definition Classes
    Type → AnyRef → Any
  143. def trimPrefix(str: String): String

  144. def typeArgs: List[Type]

    For a typeref, its arguments.

    For a typeref, its arguments. The empty list for all other types

  145. def typeArguments: List[Type]

    Definition Classes
    AbsTypeImpl → AbsType
  146. def typeConstructor: Type

    This type, without its type arguments @M

    This type, without its type arguments @M

    Definition Classes
    Type → AbsType
  147. def typeOfThis: Type

    The type of this of a class type or reference type.

  148. def typeParams: List[Symbol]

    For a (potentially wrapped) poly type, its type parameters, the empty list for all other types

    For a (potentially wrapped) poly type, its type parameters, the empty list for all other types

    Definition Classes
    Type → AbsType
  149. def typeSymbol: Symbol

    The type symbol associated with the type Note that the symbol of the normalized type is returned (@see normalize) A type's typeSymbol should if possible not be inspected directly, due to the likelihood that what is true for tp.

    The type symbol associated with the type Note that the symbol of the normalized type is returned (@see normalize) A type's typeSymbol should if possible not be inspected directly, due to the likelihood that what is true for tp.typeSymbol is not true for tp.sym, due to normalization.

    Definition Classes
    Type → AbsType
  150. def typeSymbolDirect: Symbol

    The type symbol directly associated with the type.

    The type symbol directly associated with the type. In other words, no normalization is performed: if this is an alias type, the symbol returned is that of the alias, not the underlying type.

  151. def underlying: Type

    The base type underlying a type proxy, identity on all other types

    The base type underlying a type proxy, identity on all other types

    Definition Classes
    Type → AbsType
  152. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  155. def weak_<:<(that: Type): Boolean

    Is this type a weak subtype of that type? True also for numeric types, i.

    Is this type a weak subtype of that type? True also for numeric types, i.e. Int weak_<:< Long.

  156. def widen: Type

    Widen from singleton type to its underlying non-singleton base type by applying one or more underlying dereferences, identity for all other types.

    Widen from singleton type to its underlying non-singleton base type by applying one or more underlying dereferences, identity for all other types.

    class Outer { class C ; val x: C } val o: Outer <o.x.type>.widen = o.C

    Definition Classes
    Type → AbsType
  157. final def withAnnotation(annot: AnnotationInfo): Type

    Definition Classes
    Annotatable
  158. def withAnnotations(annots: List[AnnotationInfo]): Type

    Definition Classes
    TypeAnnotatable
  159. def withFilter(p: (Type) ⇒ Boolean): FilterMapForeach

  160. def withSelfsym(sym: Symbol): Type

    Set the self symbol of an annotated type, or do nothing otherwise.

  161. def withoutAnnotations: Type

    Definition Classes
    TypeAnnotatable
  162. def [B](y: B): (Type, B)

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

Deprecated Value Members

  1. def x: Type

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

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Type

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

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Annotatable[Type]

Inherited from AbsTypeImpl

Inherited from AbsType

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from Type to StringFormat

Inherited by implicit conversion any2stringadd from Type to StringAdd

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

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