treehugger

Types

trait Types extends treehugger.api.Types

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

Type Members

  1. trait AbsCompoundType extends Universe.AbsType

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

  2. trait AbsSingletonType extends Universe.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 Forest.AbsType

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

    A type carrying some annotations.

  6. abstract class AnnotatedTypeExtractor extends AnyRef

    Definition Classes
    Types
  7. case class ClassInfoType(parents: List[Forest.Type], decls: List[Forest.Tree], typeSymbol: Forest.Symbol) extends Forest.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 Forest.Type

    A common base class for intersection types and class types

  10. abstract case class ConstantType(value: Forest.Constant) extends Forest.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[Forest.Tree], underlying: Forest.Type) extends Forest.Type with Product with Serializable

    Definition Classes
    TypesTypes
  13. abstract class ExistentialTypeExtractor extends AnyRef

    Definition Classes
    Types
  14. class JavaMethodType extends Forest.MethodType

  15. case class MethodType(params: List[Forest.Symbol], resultType: Forest.Type) extends Forest.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: Forest.Name, tp: Forest.Type) extends Forest.Type with Product with Serializable

    A class representing types with a name.

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

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

    Definition Classes
    TypesTypes
  20. abstract class NullaryMethodTypeExtractor extends AnyRef

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

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

  22. class PackageClassInfoType extends Forest.ClassInfoType

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

    A class representing a path dependent type

  24. final class PathType0 extends Forest.PathType

  25. case class PolyType(typeParams: List[Forest.Symbol], resultType: Forest.Type) extends Forest.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

    Definition Classes
    Types
  27. case class RefinedType(parents: List[Forest.Type], decls: List[Forest.Tree]) extends Forest.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 Forest.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 Forest.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: Forest.Type, sym: Forest.Symbol) extends Forest.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 Forest.SubType with Forest.SimpleTypeProxy with Forest.AbsSingletonType

    The type of Scala singleton types, i.

  34. abstract class SubType extends Forest.Type

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

  35. abstract case class SuperType(thistpe: Forest.Type, supertpe: Forest.Type) extends Forest.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: Forest.Symbol) extends Forest.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 Forest.AbsTypeImpl

    The base class for all types

  40. abstract case class TypeBounds(lo: Forest.Type, hi: Forest.Type, view: Forest.Type, context: Forest.Type) extends Forest.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: Forest.Type, sym: Forest.Symbol, args: List[Forest.Type]) extends Forest.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 Forest.Type

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

  46. final class UniqueConstantType extends Forest.ConstantType with Forest.UniqueType

  47. final class UniqueSingleType extends Forest.SingleType with Forest.UniqueType

  48. final class UniqueSuperType extends Forest.SuperType with Forest.UniqueType

  49. final class UniqueThisType extends Forest.ThisType with Forest.UniqueType

  50. trait UniqueType extends Product

  51. final class UniqueTypeBounds extends Forest.TypeBounds with Forest.UniqueType

  52. final class UniqueTypeRef extends Forest.TypeRef with Forest.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 Forest.AnnotatedTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  7. object ClassInfoType extends Forest.ClassInfoTypeExtractor with Serializable

    The constructor/deconstructor for ClassInfoType instances.

  8. object ConstantType extends Forest.ConstantTypeExtractor with Serializable

    The constructor/deconstructor for ConstantType instances.

  9. object ErrorType extends Forest.Type with Product with Serializable

    An object representing an erroneous type

  10. object ExistentialType extends Forest.ExistentialTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  11. object MethodType extends Forest.MethodTypeExtractor with Serializable

    The constructor/deconstructor for MethodType instances.

  12. object NoPrefix extends Forest.Type with Product with Serializable

    An object representing a non-existing prefix

  13. object NoType extends Forest.Type with Product with Serializable

    An object representing a non-existing type

  14. object NullaryMethodType extends Forest.NullaryMethodTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  15. object PathType extends Serializable

  16. object PolyType extends Forest.PolyTypeExtractor with Serializable

    Definition Classes
    TypesTypes
  17. object RefinedType extends Forest.RefinedTypeExtractor with Serializable

    The constructor/deconstructor for RefinedType instances.

  18. object SingleType extends Forest.SingleTypeExtractor with Serializable

    The constructor/deconstructor for SingleType instances.

  19. object SuperType extends Forest.SuperTypeExtractor with Serializable

    The constructor/deconstructor for SuperType instances.

  20. object ThisType extends Forest.ThisTypeExtractor with Serializable

    The constructor/deconstructor for ThisType instances.

  21. object TypeBounds extends Forest.TypeBoundsExtractor with Serializable

    The constructor/deconstructor for TypeBounds instances.

  22. object TypeRef extends Forest.TypeRefExtractor with Serializable

    The constructor/deconstructor for TypeRef instances.

  23. object TypeVar

  24. object WildcardType extends Forest.Type with Product with Serializable

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

  25. def annotatedType(annots: List[Forest.AnnotationInfo], underlying: Forest.Type, selfsym: Forest.Symbol = NoSymbol): Forest.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: Forest.Type, args: List[Forest.Type]): Forest.Type

    A creator for type applications

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

  28. final def asInstanceOf[T0]: T0

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

  30. def clone(): AnyRef

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

    Annotations
    @tailrec()
  32. def copyTypeRef(tp: Forest.Type, pre: Forest.Type, sym: Forest.Symbol, args: List[Forest.Type]): Forest.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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. final def getClass(): 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[Forest.Type], owner: Forest.Symbol, decls: List[Forest.Tree], customToString: String): Forest.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: Forest.Type, sym: Forest.Symbol): Forest.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: Forest.Type, sym: Forest.Symbol, args: Forest.Type*): Forest.Type

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

  51. def typeRef(sym: Forest.Symbol): Forest.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 api.Types

Inherited from AnyRef

Inherited from Any

Ungrouped