treehugger

Types

trait Types extends Types

Self Type
Forest
Linear Supertypes
Types, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Types
  2. Types
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. trait AbsCompoundType extends AbsType

    This class declares methods that are visible in a CompoundType (i.

  2. trait AbsSingletonType extends AbsType

    This class declares methods that are visible in a SingleType.

  3. abstract class AbsType extends AnyRef

    This class declares operations that are visible in a Type.

  4. abstract class AbsTypeImpl extends AbsType

  5. case class AnnotatedType(annotations: List[AnnotationInfo], underlying: Type, selfsym: Symbol) extends Type with Product with Serializable

    A type carrying some annotations.

  6. abstract class AnnotatedTypeExtractor extends AnyRef

  7. case class ClassInfoType(parents: List[Type], decls: List[Tree], typeSymbol: Symbol) extends CompoundType with Product with Serializable

    A class representing a class info

  8. abstract class ClassInfoTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax ClassInfo(parents, decls, clazz) Here, parents is the list of parent types of the class, decls is the scope containing all declarations in the class, and clazz is the symbol of the class itself.

  9. abstract class CompoundType extends Type

    A common base class for intersection types and class types

  10. abstract case class ConstantType(value: Constant) extends SingletonType with Product with Serializable

    A class representing a constant type.

  11. abstract class ConstantTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax ConstantType(constant) Here, constant is the constant value represented by the type.

  12. case class ExistentialType(quantified: List[Tree], underlying: Type) extends Type with Product with Serializable

    Definition Classes
    TypesTypes
  13. abstract class ExistentialTypeExtractor extends AnyRef

  14. class JavaMethodType extends MethodType

  15. case class MethodType(params: List[Symbol], resultType: Type) extends Type with Product with Serializable

    A class representing a method type with parameters.

  16. abstract class MethodTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax MethodType(params, respte) Here, params is a potentially empty list of parameter symbols of the method, and restpe is the result type of the method.

  17. case class NamedType(name: Name, tp: Type) extends Type with Product with Serializable

    A class representing types with a name.

  18. case class NotNullType(underlying: Type) extends SubType with Product with Serializable

  19. case class NullaryMethodType(resultType: Type) extends Type with SimpleTypeProxy with Product with Serializable

    Definition Classes
    TypesTypes
  20. abstract class NullaryMethodTypeExtractor extends AnyRef

  21. case class OverloadedType(pre: Type, alternatives: List[Symbol]) extends Type with Product with Serializable

    A class containing the alternatives and type prefix of an overloaded symbol.

  22. class PackageClassInfoType extends ClassInfoType

  23. case class PathType(tree: Tree) extends Type with Product with Serializable

    A class representing a path dependent type

  24. final class PathType0 extends PathType

  25. case class PolyType(typeParams: List[Symbol], resultType: Type) extends Type with Product with Serializable

    A type function or the type of a polymorphic value (and thus of kind *).

  26. abstract class PolyTypeExtractor extends AnyRef

  27. case class RefinedType(parents: List[Type], decls: List[Tree]) extends CompoundType with Product with Serializable

    A class representing intersection types with refinements of the form <parents_0> with ... with <parents_n> { decls } Cannot be created directly; one should always use refinedType for creation.

  28. final class RefinedType0 extends RefinedType

  29. abstract class RefinedTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax RefinedType(parents, decls) Here, parents is the list of parent types of the class, and decls is the scope containing all declarations in the class.

  30. trait SimpleTypeProxy extends Type

    A proxy for a type (identified by field underlying) that forwards most operations to it (for exceptions, see WrappingProxy, which forwards even more operations).

  31. abstract case class SingleType(pre: Type, sym: Symbol) extends SingletonType with Product with Serializable

    A class for singleton types of the form <prefix>.<sym.name>.type.

  32. abstract class SingleTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax SingleType(pre, sym) Here, pre is the prefix of the single-type, and sym is the stable value symbol referred to by the single-type.

  33. abstract class SingletonType extends SubType with SimpleTypeProxy with AbsSingletonType

    The type of Scala singleton types, i.

  34. abstract class SubType extends Type

    A base class for types that defer some operations to their immediate supertype.

  35. abstract case class SuperType(thistpe: Type, supertpe: Type) extends SingletonType with Product with Serializable

    The SuperType type is not directly written, but arises when C.super is used as a prefix in a TypeRef or SingleType.

  36. abstract class SuperTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax SingleType(thistpe, supertpe)

  37. abstract case class ThisType(sym: Symbol) extends SingletonType with Product with Serializable

    A class for this-types of the form <sym>.

  38. abstract class ThisTypeExtractor extends AnyRef

    An extractor class to create and pattern match with syntax ThisType(sym) where sym is the class prefix of the this type.

  39. abstract class Type extends AbsTypeImpl

    The base class for all types

  40. abstract case class TypeBounds(lo: Type, hi: Type, view: Type, context: Type) extends SubType with Product with Serializable

    A class for the bounds of abstract types and type parameters

  41. abstract class TypeBoundsExtractor extends AnyRef

    An extractor class to create and pattern match with syntax TypeBound(lower, upper) Here, lower is the lower bound of the TypeBounds pair, and upper is the upper bound.

  42. class TypeConstraint extends AnyRef

    A class expressing upper and lower bounds constraints of type variables, as well as their instantiations.

  43. abstract case class TypeRef(pre: Type, sym: Symbol, args: List[Type]) extends Type with Product with Serializable

    A class for named types of the form <prefix>.<sym.name>[args] Cannot be created directly; one should always use typeRef for creation.

  44. abstract class TypeRefExtractor extends AnyRef

    An extractor class to create and pattern match with syntax TypeRef(pre, sym, args) Here, pre is the prefix of the type reference, sym is the symbol referred to by the type reference, and args is a possible empty list of type argumenrts.

  45. class TypeVar extends Type

    A class representing a type variable: not used after phase typer.

  46. final class UniqueConstantType extends ConstantType with UniqueType

  47. final class UniqueSingleType extends SingleType with UniqueType

  48. final class UniqueSuperType extends SuperType with UniqueType

  49. final class UniqueThisType extends ThisType with UniqueType

  50. trait UniqueType extends Product

  51. final class UniqueTypeBounds extends TypeBounds with UniqueType

  52. final class UniqueTypeRef extends TypeRef with UniqueType

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. object AnnotatedType extends AnnotatedTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  7. object ClassInfoType extends ClassInfoTypeExtractor with Serializable

    The constructor/deconstructor for ClassInfoType instances.

  8. object ConstantType extends ConstantTypeExtractor with Serializable

    The constructor/deconstructor for ConstantType instances.

  9. object ErrorType extends Type with Product with Serializable

    An object representing an erroneous type

  10. object ExistentialType extends ExistentialTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  11. object MethodType extends MethodTypeExtractor with Serializable

    The constructor/deconstructor for MethodType instances.

  12. object NoPrefix extends Type with Product with Serializable

    An object representing a non-existing prefix

  13. object NoType extends Type with Product with Serializable

    An object representing a non-existing type

  14. object NullaryMethodType extends NullaryMethodTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  15. object PathType extends Serializable

  16. object PolyType extends PolyTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  17. object RefinedType extends RefinedTypeExtractor with Serializable

    The constructor/deconstructor for RefinedType instances.

  18. object SingleType extends SingleTypeExtractor with Serializable

    The constructor/deconstructor for SingleType instances.

  19. object SuperType extends SuperTypeExtractor with Serializable

    The constructor/deconstructor for SuperType instances.

  20. object ThisType extends ThisTypeExtractor with Serializable

    The constructor/deconstructor for ThisType instances.

  21. object TypeBounds extends TypeBoundsExtractor with Serializable

    The constructor/deconstructor for TypeBounds instances.

  22. object TypeRef extends TypeRefExtractor with Serializable

    The constructor/deconstructor for TypeRef instances.

  23. object TypeVar extends AnyRef

  24. object WildcardType extends Type with Product with Serializable

    An object representing an unknown type, used during type inference.

  25. def annotatedType(annots: List[AnnotationInfo], underlying: Type, selfsym: Symbol = NoSymbol): Type

    Creator for AnnotatedTypes.

    Creator for AnnotatedTypes. It returns the underlying type if annotations.isEmpty rather than walking into the assertion.

  26. def appliedType(tycon: Type, args: List[Type]): Type

    A creator for type applications

  27. def appliedType(tycon: Type, args: Type*): Type

  28. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  29. val builtinFullNames: Set[String]

  30. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def compareLengths(xs1: List[_], xs2: List[_]): Int

    Annotations
    @tailrec()
  32. def copyTypeRef(tp: Type, pre: Type, sym: Symbol, args: List[Type]): Type

  33. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  35. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  37. final def hasLength(xs: List[_], len: Int): Boolean

    Again avoiding calling length, but the lengthCompare interface is clunky.

  38. def hashCode(): Int

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

    Definition Classes
    Any
  40. final val maxTostringRecursions: Int(50)

    The maximum number of recursions allowed in toString

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

    Definition Classes
    AnyRef
  42. final def notify(): Unit

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

    Definition Classes
    AnyRef
  44. def refinedType(parents: List[Type], owner: Symbol, decls: List[Tree], customToString: String): Type

    the canonical creator for a refined type with a given scope

  45. final def sameLength(xs1: List[_], xs2: List[_]): Boolean

    True if two lists have the same length.

    True if two lists have the same length. Since calling length on linear sequences is O(n), it is an inadvisable way to test length equality.

  46. def singleType(pre: Type, sym: Symbol): Type

    The canonical creator for single-types

  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. def typeRef(pre: Type, sym: Symbol, args: Type*): Type

  50. def typeRef(pre: Type, sym: Symbol, args: List[Type]): Type

  51. def typeRef(sym: Symbol): Type

  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Types

Inherited from AnyRef

Inherited from Any