scala.reflect.api

Universe

abstract class Universe extends Symbols with FreeVars with Types with Constants with Scopes with Names with Trees with AnnotationInfos with Positions with Exprs with StandardDefinitions with TypeTags with TreePrinters with StandardNames with ClassLoaders with TreeBuildUtil with ToolBoxes with FrontEnds with Importers

Source
Universe.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Universe
  2. Importers
  3. FrontEnds
  4. ToolBoxes
  5. TreeBuildUtil
  6. ClassLoaders
  7. StandardNames
  8. TreePrinters
  9. TypeTags
  10. StandardDefinitions
  11. StandardTypes
  12. Exprs
  13. Positions
  14. AnnotationInfos
  15. Trees
  16. Names
  17. Scopes
  18. Constants
  19. Types
  20. FreeVars
  21. Symbols
  22. AnyRef
  23. 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 Universe()

Type Members

  1. abstract class AbsConstant extends AnyRef

  2. trait AbsDefinitions extends AbsDefinitionsInternal

  3. trait AbsDefinitionsInternal extends AnyRef

  4. abstract class AbsModifiers extends AnyRef

  5. abstract class AbsName extends AnyRef

  6. trait AbsNames extends AnyRef

  7. trait AbsSymbol extends AbsSymbolInternal

  8. trait AbsSymbolInternal extends AnyRef

  9. trait AbsTermNames extends AbsNames

  10. trait AbsToolBox extends AnyRef

  11. abstract class AbsType extends AnyRef

    This class declares operations that are visible in a Type.

  12. trait AbsTypeNames extends AbsNames

  13. case class Alternative(trees: List[Tree]) extends Tree with TermTree with Product with Serializable

    Alternatives of patterns, eliminated by explicitouter, except for occurrences in encoded Switch stmt (=remaining Match(CaseDef(.

  14. case class Annotated(annot: Tree, arg: Tree) extends Tree with Product with Serializable

    A tree that has an annotation attached to it.

  15. abstract type AnnotatedType <: Type

    Definition Classes
    Types
  16. abstract class AnnotatedTypeExtractor extends AnyRef

  17. abstract type AnnotationInfo <: AnyRef

    Definition Classes
    AnnotationInfos
  18. abstract class AnnotationInfoExtractor extends AnyRef

  19. case class AppliedTypeTree(tpt: Tree, args: List[Tree]) extends Tree with TypTree with Product with Serializable

    Applied type <tpt> [ <args> ], eliminated by RefCheck

  20. case class Apply(fun: Tree, args: List[Tree]) extends GenericApply with Product with Serializable

    Value application

  21. class ApplyConstructor extends Apply

  22. case class ApplyDynamic(qual: Tree, args: List[Tree]) extends Tree with TermTree with SymTree with Product with Serializable

    Dynamic value application.

  23. class ApplyImplicitView extends Apply

  24. class ApplyToImplicitArgs extends Apply

  25. abstract type ArrayAnnotArg <: ClassfileAnnotArg

    Definition Classes
    AnnotationInfos
  26. abstract class ArrayAnnotArgExtractor extends AnyRef

  27. case class ArrayValue(elemtpt: Tree, elems: List[Tree]) extends Tree with TermTree with Product with Serializable

    Array of expressions, needs to be translated in backend,

  28. case class Assign(lhs: Tree, rhs: Tree) extends Tree with TermTree with Product with Serializable

    Assignment

  29. case class AssignOrNamedArg(lhs: Tree, rhs: Tree) extends Tree with TermTree with Product with Serializable

    Either an assignment or a named argument.

  30. class BackQuotedIdent extends Ident

  31. case class Bind(name: Name, body: Tree) extends DefTree with Product with Serializable

    Bind of a variable to a rhs pattern, eliminated by explicitouter

  32. case class Block(stats: List[Tree], expr: Tree) extends Tree with TermTree with Product with Serializable

    Block of expressions (semicolon separated expressions)

  33. abstract type BoundedWildcardType >: Null <: Type

    BoundedWildcardTypes, used only during type inference, are created in two places that I can find:

    BoundedWildcardTypes, used only during type inference, are created in two places that I can find:

    1. If the expected type of an expression is an existential type, its hidden symbols are replaced with bounded wildcards. 2. When an implicit conversion is being sought based in part on the name of a method in the converted type, a HasMethodMatching type is created: a MethodType with parameters typed as BoundedWildcardTypes.
    Definition Classes
    Types
  34. abstract class BoundedWildcardTypeExtractor extends AnyRef

  35. case class CaseDef(pat: Tree, guard: Tree, body: Tree) extends Tree with Product with Serializable

    Case clause in a pattern match, eliminated during explicitouter (except for occurrences in switch statements)

  36. case class ClassDef(mods: Modifiers, name: TypeName, tparams: List[TypeDef], impl: Template) extends ImplDef with Product with Serializable

    A class definition.

  37. abstract type ClassInfoType <: CompoundType

    The ClassInfo type signature is used to define parents and declarations of classes, traits, and objects.

    The ClassInfo type signature is used to define parents and declarations of classes, traits, and objects. If a class, trait, or object C is declared like this

    C extends P_1 with ... with P_m { D_1; ...; D_n}

    its ClassInfo type has the following form:

    ClassInfo(List(P_1, ..., P_m), Scope(D_1, ..., D_n), C)
    Definition Classes
    Types
  38. 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.

  39. abstract type ClassSymbol <: TypeSymbol with ClassSymbolApi

    Definition Classes
    Symbols
  40. trait ClassSymbolApi extends TypeSymbolApi

  41. abstract type ClassfileAnnotArg <: AnyRef

    Definition Classes
    AnnotationInfos
  42. class CollectTreeTraverser[T] extends Traverser

  43. abstract type CompoundType <: Type

    A subtype of Type representing refined types as well as ClassInfo signatures.

    A subtype of Type representing refined types as well as ClassInfo signatures.

    Definition Classes
    Types
  44. case class CompoundTypeTree(templ: Template) extends Tree with TypTree with Product with Serializable

    Intersection type <parent1> with .

  45. trait ConcreteTypeTag[T] extends TypeTag[T] with ClassTag[T] with Equals with Serializable

    If an implicit value of type u.

  46. abstract type Constant <: AbsConstant

    Definition Classes
    Constants
  47. abstract class ConstantExtractor extends AnyRef

  48. abstract type ConstantType <: SingletonType

    The ConstantType type is not directly written in user programs, but arises as the type of a constant.

    The ConstantType type is not directly written in user programs, but arises as the type of a constant. The REPL expresses constant types like Int(11). Here are some constants with their types.

    1           ConstantType(Constant(1))
    "abc"       ConstantType(Constant("abc"))
    Definition Classes
    Types
  49. 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.

  50. case class DefDef(mods: Modifiers, name: Name, tparams: List[TypeDef], vparamss: List[List[ValDef]], tpt: Tree, rhs: Tree) extends ValOrDefDef with Product with Serializable

    A method or macro definition.

  51. abstract class DefTree extends Tree with SymTree with NameTree

    A tree which defines a symbol-carrying entity.

  52. abstract type ExistentialType <: Type

    Definition Classes
    Types
  53. abstract class ExistentialTypeExtractor extends AnyRef

  54. case class ExistentialTypeTree(tpt: Tree, whereClauses: List[Tree]) extends Tree with TypTree with Product with Serializable

  55. case class Expr[+T](tree: Tree, evidence$1: TypeTag[T]) extends Product with Serializable

    An expression tree tagged with its type

  56. class FilterTreeTraverser extends Traverser

  57. class FindTreeTraverser extends Traverser

  58. class ForeachTreeTraverser extends Traverser

  59. abstract type FreeTerm <: Symbol

    Represents a free term captured by reification.

    Represents a free term captured by reification.

    Definition Classes
    FreeVars
  60. abstract class FreeTermExtractor extends AnyRef

  61. abstract type FreeType <: Symbol

    Represents a free type captured by reification.

    Represents a free type captured by reification.

    Definition Classes
    FreeVars
  62. abstract class FreeTypeExtractor extends AnyRef

  63. trait FrontEnd extends AnyRef

  64. case class Function(vparams: List[ValDef], body: Tree) extends Tree with TermTree with SymTree with Product with Serializable

    Anonymous function, eliminated by analyzer

  65. abstract class GenericApply extends Tree with TermTree

    Common base class for Apply and TypeApply.

  66. case class Ident(name: Name) extends Tree with RefTree with Product with Serializable

    Identifier <name>

  67. case class If(cond: Tree, thenp: Tree, elsep: Tree) extends Tree with TermTree with Product with Serializable

    Conditional expression

  68. abstract class ImplDef extends MemberDef

    A common base class for class and object definitions.

  69. case class Import(expr: Tree, selectors: List[ImportSelector]) extends Tree with SymTree with Product with Serializable

    Import clause

  70. case class ImportSelector(name: Name, namePos: Int, rename: Name, renamePos: Int) extends Product with Serializable

    Import selector

  71. trait Importer extends AnyRef

  72. case class LabelDef(name: TermName, params: List[Ident], rhs: Tree) extends DefTree with TermTree with Product with Serializable

    A labelled expression.

  73. class LazyTreeCopier extends TreeCopierOps

  74. case class Literal(value: Constant) extends Tree with TermTree with Product with Serializable

    Literal

  75. abstract type LiteralAnnotArg <: ClassfileAnnotArg

    Definition Classes
    AnnotationInfos
  76. abstract class LiteralAnnotArgExtractor extends AnyRef

  77. case class Match(selector: Tree, cases: List[CaseDef]) extends Tree with TermTree with Product with Serializable

    - Pattern matching expression (before explicitouter)

  78. abstract class MemberDef extends DefTree

    Common base class for all member definitions: types, classes, objects, packages, vals and vars, defs.

  79. abstract type MethodSymbol <: TermSymbol with MethodSymbolApi

    Definition Classes
    Symbols
  80. trait MethodSymbolApi extends TermSymbolApi

  81. abstract type MethodType <: Type

    The MethodType type signature is used to indicate parameters and result type of a method

    The MethodType type signature is used to indicate parameters and result type of a method

    Definition Classes
    Types
  82. 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.

  83. abstract type Modifiers >: Null <: AbsModifiers

    Definition Classes
    Trees
  84. case class ModuleDef(mods: Modifiers, name: TermName, impl: Template) extends ImplDef with Product with Serializable

    An object definition, e.

  85. abstract type ModuleSymbol <: TermSymbol with ModuleSymbolApi

    Definition Classes
    Symbols
  86. trait ModuleSymbolApi extends TermSymbolApi

  87. abstract type Name >: Null <: AbsName

    The abstract type of names

    The abstract type of names

    Definition Classes
    Names
  88. trait NameTree extends Tree

    A tree with a name - effectively, a DefTree or RefTree.

  89. abstract type NestedAnnotArg <: ClassfileAnnotArg

    Definition Classes
    AnnotationInfos
  90. abstract class NestedAnnotArgExtractor extends AnyRef

  91. case class New(tpt: Tree) extends Tree with TermTree with Product with Serializable

    Object instantiation One should always use factory method below to build a user level new.

  92. abstract type NullaryMethodType <: Type

    Definition Classes
    Types
  93. abstract class NullaryMethodTypeExtractor extends AnyRef

  94. case class PackageDef(pid: RefTree, stats: List[Tree]) extends MemberDef with Product with Serializable

    A packaging, such as package pid { stats }

  95. abstract type PackageSymbol <: ModuleSymbol with PackageSymbolApi

    Definition Classes
    Symbols
  96. trait PackageSymbolApi extends ModuleSymbolApi

  97. abstract type PolyType <: Type

    Definition Classes
    Types
  98. abstract class PolyTypeExtractor extends AnyRef

  99. abstract type Position <: Position

    Definition Classes
    Positions
  100. class RawTreePrinter extends TreePrinter

  101. trait RefTree extends Tree with SymTree with NameTree

    A tree which references a symbol-carrying entity.

  102. case class ReferenceToBoxed(ident: Ident) extends Tree with TermTree with Product with Serializable

    Marks underlying reference to id as boxed.

  103. abstract type RefinedType <: CompoundType

    The RefinedType type defines types of any of the forms on the left, with their RefinedType representations to the right.

    The RefinedType type defines types of any of the forms on the left, with their RefinedType representations to the right.

    P_1 with ... with P_m { D_1; ...; D_n}      RefinedType(List(P_1, ..., P_m), Scope(D_1, ..., D_n))
    P_1 with ... with P_m                       RefinedType(List(P_1, ..., P_m), Scope())
    { D_1; ...; D_n}                            RefinedType(List(AnyRef), Scope(D_1, ..., D_n))
    Definition Classes
    Types
  104. 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.

  105. case class Return(expr: Tree) extends Tree with TermTree with SymTree with Product with Serializable

    Return expression

  106. abstract type Scope <: Iterable[Symbol]

    Definition Classes
    Scopes
  107. case class Select(qualifier: Tree, name: Name) extends Tree with RefTree with Product with Serializable

    Designator <qualifier> .

  108. case class SelectFromTypeTree(qualifier: Tree, name: TypeName) extends Tree with TypTree with RefTree with Product with Serializable

    Type selection <qualifier> # <name>, eliminated by RefCheck

  109. class SilentFrontEnd extends FrontEnd

  110. abstract type SingleType <: SingletonType

    The SingleType type describes types of any of the forms on the left, with their TypeRef representations to the right.

    The SingleType type describes types of any of the forms on the left, with their TypeRef representations to the right.

    (T # x).type             SingleType(T, x)
    p.x.type                 SingleType(p.type, x)
    x.type                   SingleType(NoPrefix, x)
    Definition Classes
    Types
  111. 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.

  112. abstract type SingletonType >: Null <: Type

    The type of Scala singleton types, i.

    The type of Scala singleton types, i.e. types that are inhabited by only one nun-null value. These include types of the forms

    C.this.type
    C.super.type
    x.type

    as well as constant types.

    Definition Classes
    Types
  113. case class SingletonTypeTree(ref: Tree) extends Tree with TypTree with Product with Serializable

    Singleton type, eliminated by RefCheck

  114. case class Star(elem: Tree) extends Tree with TermTree with Product with Serializable

    Repetition of pattern, eliminated by explicitouter

  115. class StrictTreeCopier extends TreeCopierOps

  116. case class Super(qual: Tree, mix: TypeName) extends Tree with TermTree with Product with Serializable

    Super reference, qual = corresponding this reference A super reference C.

  117. abstract type SuperType <: SingletonType

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

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

    SuperType(thistpe, supertpe)

    Here, thistpe is the type of the corresponding this-type. For instance, in the type arising from C.super, the thistpe part would be ThisType(C). supertpe is the type of the super class referred to by the super.

    Definition Classes
    Types
  118. abstract class SuperTypeExtractor extends AnyRef

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

  119. trait SymTree extends Tree

    A tree with a mutable symbol field, initialized to NoSymbol.

  120. abstract type Symbol >: Null <: AbsSymbol

    Definition Classes
    Symbols
  121. case class Template(parents: List[Tree], self: ValDef, body: List[Tree]) extends Tree with SymTree with Product with Serializable

    Instantiation template of a class or trait

  122. abstract type TermName <: Name

    The abstract type of names representing types

    The abstract type of names representing types

    Definition Classes
    Names
  123. abstract type TermSymbol <: Symbol with TermSymbolApi

    Definition Classes
    Symbols
  124. trait TermSymbolApi extends AnyRef

  125. trait TermTree extends Tree

    A tree for a term.

  126. case class This(qual: TypeName) extends Tree with TermTree with SymTree with Product with Serializable

    Self reference

  127. abstract type ThisType <: SingletonType

    The ThisType type describes types of the form on the left with the correspnding ThisType representations to the right.

    The ThisType type describes types of the form on the left with the correspnding ThisType representations to the right.

    C.this.type             ThisType(C)
    Definition Classes
    Types
  128. 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.

  129. case class Throw(expr: Tree) extends Tree with TermTree with Product with Serializable

    Throw expression

  130. abstract type ToolBox <: AbsToolBox

    Definition Classes
    ToolBoxes
  131. abstract class Transformer extends AnyRef

  132. class Traverser extends AnyRef

  133. abstract class Tree extends Product

    Tree is the basis for scala's abstract syntax.

  134. abstract type TreeCopier <: TreeCopierOps

    Definition Classes
    Trees
  135. trait TreeCopierOps extends AnyRef

  136. abstract type TreeGen <: AbsTreeGen

    Definition Classes
    TreeBuildUtil
  137. trait TreePrinter extends AnyRef

  138. case class Try(block: Tree, catches: List[CaseDef], finalizer: Tree) extends Tree with TermTree with Product with Serializable

  139. trait TypTree extends Tree

    A tree for a type.

  140. abstract type Type >: Null <: AbsType

    The type of Scala types, and also Scala type signatures.

    The type of Scala types, and also Scala type signatures. (No difference is internally made between the two).

    Definition Classes
    Types
  141. case class TypeApply(fun: Tree, args: List[Tree]) extends GenericApply with Product with Serializable

    Explicit type application.

  142. abstract type TypeBounds <: Type

    The TypeBounds type signature is used to indicate lower and upper type bounds of type parameters and abstract types.

    The TypeBounds type signature is used to indicate lower and upper type bounds of type parameters and abstract types. It is not a first-class type. If an abstract type or type parameter is declared with any of the forms on the left, its type signature is the TypeBounds type on the right.

    T >: L <: U               TypeBounds(L, U)
    T >: L                    TypeBounds(L, Any)
    T <: U                    TypeBounds(Nothing, U)
    Definition Classes
    Types
  143. 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.

  144. case class TypeBoundsTree(lo: Tree, hi: Tree) extends Tree with TypTree with Product with Serializable

  145. case class TypeDef(mods: Modifiers, name: TypeName, tparams: List[TypeDef], rhs: Tree) extends MemberDef with Product with Serializable

    An abstract type, a type parameter, or a type alias.

  146. abstract type TypeName <: Name

    The abstract type of names representing terms

    The abstract type of names representing terms

    Definition Classes
    Names
  147. abstract type TypeRef <: Type

    The TypeRef type describes types of any of the forms on the left, with their TypeRef representations to the right.

    The TypeRef type describes types of any of the forms on the left, with their TypeRef representations to the right.

    T # C[T_1, ..., T_n]      TypeRef(T, C, List(T_1, ..., T_n))
    p.C[T_1, ..., T_n]        TypeRef(p.type, C, List(T_1, ..., T_n))
    C[T_1, ..., T_n]          TypeRef(NoPrefix, C, List(T_1, ..., T_n))
    T # C                     TypeRef(T, C, Nil)
    p.C                       TypeRef(p.type, C, Nil)
    C                         TypeRef(NoPrefix, C, Nil)
    Definition Classes
    Types
  148. 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.

  149. abstract type TypeSymbol <: Symbol with TypeSymbolApi

    Definition Classes
    Symbols
  150. trait TypeSymbolApi extends AnyRef

  151. trait TypeTag[T] extends ErasureTag[T] with Equals with Serializable

    If an implicit value of type u.

  152. case class TypeTree() extends Tree with TypTree with Product with Serializable

    A synthetic tree holding an arbitrary type.

  153. case class Typed(expr: Tree, tpt: Tree) extends Tree with TermTree with Product with Serializable

    Type annotation, eliminated by explicit outer

  154. case class UnApply(fun: Tree, args: List[Tree]) extends Tree with TermTree with Product with Serializable

  155. case class ValDef(mods: Modifiers, name: TermName, tpt: Tree, rhs: Tree) extends ValOrDefDef with Product with Serializable

    Broadly speaking, a value definition.

  156. abstract class ValOrDefDef extends MemberDef

    A common base class for ValDefs and DefDefs.

Abstract Value Members

  1. abstract val AnnotatedType: AnnotatedTypeExtractor

    Definition Classes
    Types
  2. abstract val AnnotationInfo: AnnotationInfoExtractor

    Definition Classes
    AnnotationInfos
  3. abstract val AnyRefTpe: Type

    Definition Classes
    StandardTypes
  4. abstract val AnyTpe: Type

    Definition Classes
    StandardTypes
  5. abstract val AnyValTpe: Type

    Definition Classes
    StandardTypes
  6. abstract def Apply(sym: Symbol, args: Tree*): Tree

    Definition Classes
    Trees
  7. abstract val ArrayAnnotArg: ArrayAnnotArgExtractor

    Definition Classes
    AnnotationInfos
  8. abstract def Bind(sym: Symbol, body: Tree): Bind

    Definition Classes
    Trees
  9. abstract def Block(stats: Tree*): Block

    Block factory that flattens directly nested blocks.

    Block factory that flattens directly nested blocks.

    Definition Classes
    Trees
  10. abstract val BooleanTpe: Type

    Definition Classes
    StandardTypes
  11. abstract val BoundedWildcardType: BoundedWildcardTypeExtractor

    Definition Classes
    Types
  12. abstract val ByteTpe: Type

    Definition Classes
    StandardTypes
  13. abstract def CaseDef(pat: Tree, body: Tree): CaseDef

    casedef shorthand

    casedef shorthand

    Definition Classes
    Trees
  14. abstract val CharTpe: Type

    Definition Classes
    StandardTypes
  15. abstract def ClassDef(sym: Symbol, impl: Template): ClassDef

    sym

    the class symbol

    returns

    the implementation template

    Definition Classes
    Trees
  16. abstract val ClassInfoType: ClassInfoTypeExtractor

    The constructor/deconstructor for ClassInfoType instances.

    The constructor/deconstructor for ClassInfoType instances.

    Definition Classes
    Types
  17. abstract val Constant: ConstantExtractor

    Definition Classes
    Constants
  18. abstract val ConstantType: ConstantTypeExtractor

    The constructor/deconstructor for ConstantType instances.

    The constructor/deconstructor for ConstantType instances.

    Definition Classes
    Types
  19. abstract def DefDef(sym: Symbol, rhs: (List[List[Symbol]]) ⇒ Tree): DefDef

    Definition Classes
    Trees
  20. abstract def DefDef(sym: Symbol, rhs: Tree): DefDef

    Definition Classes
    Trees
  21. abstract def DefDef(sym: Symbol, mods: Modifiers, rhs: Tree): DefDef

    Definition Classes
    Trees
  22. abstract def DefDef(sym: Symbol, vparamss: List[List[ValDef]], rhs: Tree): DefDef

    Definition Classes
    Trees
  23. abstract def DefDef(sym: Symbol, mods: Modifiers, vparamss: List[List[ValDef]], rhs: Tree): DefDef

    Definition Classes
    Trees
  24. abstract val DoubleTpe: Type

    Definition Classes
    StandardTypes
  25. abstract val ExistentialType: ExistentialTypeExtractor

    Definition Classes
    Types
  26. abstract val FloatTpe: Type

    Definition Classes
    StandardTypes
  27. abstract val FreeTerm: FreeTermExtractor

    Definition Classes
    FreeVars
  28. abstract val FreeType: FreeTypeExtractor

    Definition Classes
    FreeVars
  29. abstract def Ident(sym: Symbol): Ident

    Definition Classes
    Trees
  30. abstract def Ident(name: String): Ident

    Definition Classes
    Trees
  31. abstract val IntTpe: Type

    Definition Classes
    StandardTypes
  32. abstract def LabelDef(sym: Symbol, params: List[Symbol], rhs: Tree): LabelDef

    Definition Classes
    Trees
  33. abstract val LiteralAnnotArg: LiteralAnnotArgExtractor

    Definition Classes
    AnnotationInfos
  34. abstract val LongTpe: Type

    Definition Classes
    StandardTypes
  35. abstract val MethodType: MethodTypeExtractor

    The constructor/deconstructor for MethodType instances.

    The constructor/deconstructor for MethodType instances.

    Definition Classes
    Types
  36. abstract def Modifiers(mods: Set[Modifier] = Set(), privateWithin: Name = EmptyTypeName, annotations: List[Tree] = List()): Modifiers

    Definition Classes
    Trees
  37. abstract def ModuleDef(sym: Symbol, impl: Template): ModuleDef

    sym

    the class symbol

    impl

    the implementation template

    Definition Classes
    Trees
  38. abstract val NestedAnnotArg: NestedAnnotArgExtractor

    Definition Classes
    AnnotationInfos
  39. abstract def New(sym: Symbol, args: Tree*): Tree

    Definition Classes
    Trees
  40. abstract def New(tpe: Type, args: Tree*): Tree

    0-1 argument list new, based on a type.

    0-1 argument list new, based on a type.

    Definition Classes
    Trees
  41. abstract def New(tpt: Tree, argss: List[List[Tree]]): Tree

    Factory method for object creation new tpt(args_1)...(args_n) A New(t, as) is expanded to: (new t).<init>(as)

    Factory method for object creation new tpt(args_1)...(args_n) A New(t, as) is expanded to: (new t).<init>(as)

    Definition Classes
    Trees
  42. abstract val NoMods: Modifiers

    Definition Classes
    Trees
  43. abstract val NoPosition: Position

    Definition Classes
    Positions
  44. abstract val NoPrefix: Type

    This constant is used as a special value denoting the empty prefix in a path dependent type.

    This constant is used as a special value denoting the empty prefix in a path dependent type. For instance x.type is represented as SingleType(NoPrefix, <x>), where <x> stands for the symbol for x.

    Definition Classes
    Types
  45. abstract val NoSymbol: Symbol

    Definition Classes
    Symbols
  46. abstract val NoType: Type

    This constant is used as a special value that indicates that no meaningful type exists.

    This constant is used as a special value that indicates that no meaningful type exists.

    Definition Classes
    Types
  47. abstract val NothingTpe: Type

    Definition Classes
    StandardTypes
  48. abstract val NullTpe: Type

    Definition Classes
    StandardTypes
  49. abstract val NullaryMethodType: NullaryMethodTypeExtractor

    Definition Classes
    Types
  50. abstract val ObjectTpe: Type

    Definition Classes
    StandardTypes
  51. abstract val PolyType: PolyTypeExtractor

    Definition Classes
    Types
  52. abstract val RefinedType: RefinedTypeExtractor

    The constructor/deconstructor for RefinedType instances.

    The constructor/deconstructor for RefinedType instances.

    Definition Classes
    Types
  53. abstract def Select(qualifier: Tree, sym: Symbol): Select

    Definition Classes
    Trees
  54. abstract def Select(qualifier: Tree, name: String): Select

    Definition Classes
    Trees
  55. abstract val ShortTpe: Type

    Definition Classes
    StandardTypes
  56. abstract val SingleType: SingleTypeExtractor

    The constructor/deconstructor for SingleType instances.

    The constructor/deconstructor for SingleType instances.

    Definition Classes
    Types
  57. abstract val StringTpe: Type

    Definition Classes
    StandardTypes
  58. abstract def Super(sym: Symbol, mix: TypeName): Tree

    Definition Classes
    Trees
  59. abstract val SuperType: SuperTypeExtractor

    The constructor/deconstructor for SuperType instances.

    The constructor/deconstructor for SuperType instances.

    Definition Classes
    Types
  60. abstract def This(sym: Symbol): Tree

    Definition Classes
    Trees
  61. abstract val ThisType: ThisTypeExtractor

    The constructor/deconstructor for ThisType instances.

    The constructor/deconstructor for ThisType instances.

    Definition Classes
    Types
  62. abstract def Throw(tpe: Type, args: Tree*): Throw

    Definition Classes
    Trees
  63. abstract def Try(body: Tree, cases: (Tree, Tree)*): Try

    Definition Classes
    Trees
  64. abstract val TypeBounds: TypeBoundsExtractor

    The constructor/deconstructor for TypeBounds instances.

    The constructor/deconstructor for TypeBounds instances.

    Definition Classes
    Types
  65. abstract def TypeDef(sym: Symbol): TypeDef

    A TypeDef node which defines abstract type or type parameter for given sym

    A TypeDef node which defines abstract type or type parameter for given sym

    Definition Classes
    Trees
  66. abstract def TypeDef(sym: Symbol, rhs: Tree): TypeDef

    A TypeDef node which defines given sym with given tight hand side rhs.

    A TypeDef node which defines given sym with given tight hand side rhs.

    Definition Classes
    Trees
  67. abstract val TypeRef: TypeRefExtractor

    The constructor/deconstructor for TypeRef instances.

    The constructor/deconstructor for TypeRef instances.

    Definition Classes
    Types
  68. abstract val UnitTpe: Type

    Definition Classes
    StandardTypes
  69. abstract def ValDef(sym: Symbol): ValDef

    Definition Classes
    Trees
  70. abstract def ValDef(sym: Symbol, rhs: Tree): ValDef

    Definition Classes
    Trees
  71. abstract val WildcardType: Type

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

    An object representing an unknown type, used during type inference. If you see WildcardType outside of inference it is almost certainly a bug.

    Definition Classes
    Types
  72. abstract def appliedType(tycon: Type, args: List[Type]): Type

    A creator for type applications

    A creator for type applications

    Definition Classes
    Types
  73. abstract def atPos[T <: Tree](pos: Position)(tree: T): T

    Assigns a given position to all position-less nodes of a given AST.

    Assigns a given position to all position-less nodes of a given AST.

    Definition Classes
    Positions
  74. implicit abstract def classfileAnnotArgTag: ArrayTag[ClassfileAnnotArg]

    Definition Classes
    AnnotationInfos
  75. abstract val definitions: AbsDefinitions

    Definition Classes
    StandardDefinitions
  76. abstract def duplicateTree(tree: Tree): Tree

    Attributes
    protected
    Definition Classes
    Trees
  77. abstract def emptyValDef: ValDef

    An empty deferred value definition corresponding to: val _: _ This is used as a placeholder in the self parameter Template if there is no definition of a self value of self type.

    An empty deferred value definition corresponding to: val _: _ This is used as a placeholder in the self parameter Template if there is no definition of a self value of self type.

    Definition Classes
    Trees
  78. abstract def ensureNonOverlapping(tree: Tree, others: List[Tree]): Unit

    Ensure that given tree has no positions that overlap with any of the positions of others.

    Ensure that given tree has no positions that overlap with any of the positions of others. This is done by shortening the range or assigning TransparentPositions to some of the nodes in tree.

    Definition Classes
    Positions
  79. abstract def existentialAbstraction(tparams: List[Symbol], tpe0: Type): Type

    A creator for existential types.

    A creator for existential types. This generates:

    tpe1 where { tparams }

    where tpe1 is the result of extrapolating tpe wrt to tparams. Extrapolating means that type variables in tparams occurring in covariant positions are replaced by upper bounds, (minus any SingletonClass markers), type variables in tparams occurring in contravariant positions are replaced by upper bounds, provided the resulting type is legal wrt to stability, and does not contain any type variable in tparams.

    The abstraction drops all type parameters that are not directly or indirectly referenced by type tpe1. If there are no remaining type parameters, simply returns result type tpe.

    Definition Classes
    Types
  80. abstract def freeTerms(tree: Tree): List[FreeTerm]

    Extracts free terms from a tree that is reified or contains reified subtrees.

    Extracts free terms from a tree that is reified or contains reified subtrees.

    Definition Classes
    FreeVars
  81. abstract def freeTypes(tree: Tree): List[FreeType]

    Extracts free types from a tree that is reified or contains reified subtrees.

    Extracts free types from a tree that is reified or contains reified subtrees.

    Definition Classes
    FreeVars
  82. abstract val gen: TreeGen { val global: Universe.this.type }

    Definition Classes
    TreeBuildUtil
  83. abstract def glb(ts: List[Type]): Type

    The greatest lower bound wrt <:< of a list of types

    The greatest lower bound wrt <:< of a list of types

    Definition Classes
    Types
  84. abstract def intersectionType(tps: List[Type], owner: Symbol): Type

    A creator for intersection type where intersections of a single type are replaced by the type itself, and repeated parent classes are merged.

    A creator for intersection type where intersections of a single type are replaced by the type itself, and repeated parent classes are merged.

    !!! Repeated parent classes are not merged - is this a bug in the comment or in the code?

    Definition Classes
    Types
  85. abstract def intersectionType(tps: List[Type]): Type

    A creator for intersection type where intersections of a single type are replaced by the type itself.

    A creator for intersection type where intersections of a single type are replaced by the type itself.

    Definition Classes
    Types
  86. abstract def lub(xs: List[Type]): Type

    The least upper bound wrt <:< of a list of types

    The least upper bound wrt <:< of a list of types

    Definition Classes
    Types
  87. abstract def mkConsoleFrontEnd(minSeverity: Int = 1): FrontEnd

    Creates a reporter that prints messages to the console according to the settings.

    Creates a reporter that prints messages to the console according to the settings.

    minSeverity determines minimum severity of the messages to be printed. 0 stands for INFO, 1 stands for WARNING and 2 stands for ERROR.

    Definition Classes
    FrontEnds
  88. abstract def mkImporter(from0: Universe): Importer { val from: from0.type }

    Definition Classes
    Importers
  89. abstract def mkToolBox(frontEnd: FrontEnd = mkSilentFrontEnd(), options: String = ""): AbsToolBox

    Definition Classes
    ToolBoxes
  90. abstract def modifiersFromInternalFlags(flags: Long, privateWithin: Name, annotations: List[Tree]): Modifiers

    Create a Modiiers structure given internal flags, qualifier, annotations

    Create a Modiiers structure given internal flags, qualifier, annotations

    Definition Classes
    TreeBuildUtil
  91. abstract def newFreeExistential(name: String, info: Type, value: ⇒ Any, flags: Long = 0L, origin: String = null): Symbol

    Create a fresh free existential type symbol.

    Create a fresh free existential type symbol.

    name

    the name of the free variable

    info

    the type signature of the free variable

    value

    a type tag that captures the value of the free variable is completely phantom, since the captured type cannot be propagated to the runtime if it could be, we wouldn't be creating a free type to begin with the only usage for it is preserving the captured symbol for compile-time analysis

    flags

    (optional) flags of the free variable

    origin

    (optional) debug information that tells where this symbol comes from

    Definition Classes
    TreeBuildUtil
  92. abstract def newFreeTerm(name: String, info: Type, value: ⇒ Any, flags: Long = 0L, origin: String = null): Symbol

    Create a fresh free term symbol.

    Create a fresh free term symbol.

    name

    the name of the free variable

    info

    the type signature of the free variable

    value

    the value of the free variable at runtime

    flags

    (optional) flags of the free variable

    origin

    debug information that tells where this symbol comes from

    Definition Classes
    TreeBuildUtil
  93. abstract def newFreeType(name: String, info: Type, value: ⇒ Any, flags: Long = 0L, origin: String = null): Symbol

    Create a fresh free non-existential type symbol.

    Create a fresh free non-existential type symbol.

    name

    the name of the free variable

    info

    the type signature of the free variable

    value

    a type tag that captures the value of the free variable is completely phantom, since the captured type cannot be propagated to the runtime if it could be, we wouldn't be creating a free type to begin with the only usage for it is preserving the captured symbol for compile-time analysis

    flags

    (optional) flags of the free variable

    origin

    debug information that tells where this symbol comes from

    Definition Classes
    TreeBuildUtil
  94. abstract def newLazyTreeCopier: TreeCopier

    Definition Classes
    Trees
  95. abstract def newNestedScope(outer: Scope): Scope

    Create a new scope nested in another one with which it shares its elements

    Create a new scope nested in another one with which it shares its elements

    Definition Classes
    Scopes
  96. abstract def newScope: Scope

    Create a new scope

    Create a new scope

    Definition Classes
    Scopes
  97. abstract def newScopeWith(elems: Symbol*): Scope

    Create a new scope with given initial elements

    Create a new scope with given initial elements

    Definition Classes
    Scopes
  98. abstract def newStrictTreeCopier: TreeCopier

    Definition Classes
    Trees
  99. abstract def newTermName(s: String): TermName

    Create a new term name.

    Create a new term name.

    Definition Classes
    Names
  100. abstract def newTreePrinter(out: PrintWriter): TreePrinter

    Hook to define what show(tree) means.

    Hook to define what show(tree) means.

    Definition Classes
    TreePrinters
  101. abstract def newTypeName(s: String): TypeName

    Creates a new type name.

    Creates a new type name.

    Definition Classes
    Names
  102. abstract val nme: AbsTermNames

    Definition Classes
    StandardNames
  103. abstract def polyType(tparams: List[Symbol], tpe: Type): Type

    A creator for type parameterizations that strips empty type parameter lists.

    A creator for type parameterizations that strips empty type parameter lists. Use this factory method to indicate the type has kind * (it's a polymorphic value) until we start tracking explicit kinds equivalent to typeFun (except that the latter requires tparams nonEmpty).

    Definition Classes
    Types
  104. abstract def refinedType(parents: List[Type], owner: Symbol): Type

    The canonical creator for a refined type with an initially empty scope.

    The canonical creator for a refined type with an initially empty scope.

    parents

    ...

    owner

    ...

    returns

    ...

    Definition Classes
    Types
  105. abstract def refinedType(parents: List[Type], owner: Symbol, decls: Scope, pos: Position): Type

    the canonical creator for a refined type with a given scope

    the canonical creator for a refined type with a given scope

    Definition Classes
    Types
  106. abstract def selectOverloadedMethod(owner: Symbol, name: String, index: Int): Symbol

    Selects overloaded method symbol with given name and index Unlike selectOverloadedMethodIfDefined, throws MissingRequirementError is requested overloaded method cannot be found.

    Selects overloaded method symbol with given name and index Unlike selectOverloadedMethodIfDefined, throws MissingRequirementError is requested overloaded method cannot be found.

    Definition Classes
    TreeBuildUtil
  107. abstract def selectOverloadedMethodIfDefined(owner: Symbol, name: String, index: Int): Symbol

    Selects overloaded method symbol with given name and index Unlike selectOverloadedMethod, doesn't throw MissingRequirementError (returns NoSymbol) is requested overloaded method cannot be found.

    Selects overloaded method symbol with given name and index Unlike selectOverloadedMethod, doesn't throw MissingRequirementError (returns NoSymbol) is requested overloaded method cannot be found.

    Definition Classes
    TreeBuildUtil
  108. abstract def selectTerm(owner: Symbol, name: String): Symbol

    Selects term symbol with given name and type from the defined members of prefix type Unlike selectTermIfDefined, throws MissingRequirementError is requested term symbol cannot be found.

    Selects term symbol with given name and type from the defined members of prefix type Unlike selectTermIfDefined, throws MissingRequirementError is requested term symbol cannot be found.

    Definition Classes
    TreeBuildUtil
  109. abstract def selectTermIfDefined(owner: Symbol, name: String): Symbol

    Selects term symbol with given name and type from the defined members of prefix type Unlike selectTerm, doesn't throw MissingRequirementError (returns NoSymbol) is requested term symbol cannot be found.

    Selects term symbol with given name and type from the defined members of prefix type Unlike selectTerm, doesn't throw MissingRequirementError (returns NoSymbol) is requested term symbol cannot be found.

    Definition Classes
    TreeBuildUtil
  110. abstract def selectType(owner: Symbol, name: String): Symbol

    Selects type symbol with given simple name name from the defined members of owner.

    Selects type symbol with given simple name name from the defined members of owner. Unlike selectTypeIfDefined, throws MissingRequirementError is requested type symbol cannot be found.

    Definition Classes
    TreeBuildUtil
  111. abstract def selectTypeIfDefined(owner: Symbol, name: String): Symbol

    Selects type symbol with given simple name name from the defined members of owner.

    Selects type symbol with given simple name name from the defined members of owner. Unlike selectType, doesn't throw MissingRequirementError (returns NoSymbol) is requested type symbol cannot be found.

    Definition Classes
    TreeBuildUtil
  112. abstract def singleType(pre: Type, sym: Symbol): Type

    The canonical creator for single-types

    The canonical creator for single-types

    Definition Classes
    Types
  113. abstract def staticClass(fullName: String): Symbol

    The symbol corresponding to the globally accessible class with the given fully qualified name fullName.

    The symbol corresponding to the globally accessible class with the given fully qualified name fullName. Unlike staticClassIfDefined, throws MissingRequirementError is requested class cannot be found.

    Definition Classes
    TreeBuildUtil
  114. abstract def staticClassIfDefined(fullName: String): Symbol

    The symbol corresponding to the globally accessible class with the given fully qualified name fullName.

    The symbol corresponding to the globally accessible class with the given fully qualified name fullName. Unlike staticClass, doesn't throw MissingRequirementError (returns NoSymbol) is requested class cannot be found.

    Definition Classes
    TreeBuildUtil
  115. abstract def staticModule(fullName: String): Symbol

    The symbol corresponding to the globally accessible object with the given fully qualified name fullName.

    The symbol corresponding to the globally accessible object with the given fully qualified name fullName. Unlike staticModuleIfDefined, throws MissingRequirementError is requested object cannot be found.

    Definition Classes
    TreeBuildUtil
  116. abstract def staticModuleIfDefined(fullName: String): Symbol

    The symbol corresponding to the globally accessible object with the given fully qualified name fullName.

    The symbol corresponding to the globally accessible object with the given fully qualified name fullName. Unlike staticModule, doesn't throw MissingRequirementError (returns NoSymbol) is requested object cannot be found.

    Definition Classes
    TreeBuildUtil
  117. abstract def substituteFreeTypes(tpe: Type, subs: Map[FreeType, Type]): Type

    Substitutes free types in a reified type.

    Substitutes free types in a reified type.

    Definition Classes
    FreeVars
  118. abstract def substituteFreeTypes(tree: Tree, subs: Map[FreeType, Type]): Tree

    Substitutes free types in a reified tree.

    Substitutes free types in a reified tree.

    Definition Classes
    FreeVars
  119. abstract def thisModuleType(fullName: String): Type

    The this-ptype of the globally accessible object with the given fully qualified name fullName.

    The this-ptype of the globally accessible object with the given fully qualified name fullName.

    Definition Classes
    TreeBuildUtil
  120. abstract val tpnme: AbsTypeNames

    Definition Classes
    StandardNames
  121. abstract def typeRef(pre: Type, sym: Symbol, args: List[Type]): Type

    The canonical creator for typerefs

    The canonical creator for typerefs

    Definition Classes
    Types
  122. abstract def wrappingPos(trees: List[Tree]): Position

    A position that wraps the non-empty set of trees.

    A position that wraps the non-empty set of trees. The point of the wrapping position is the point of the first trees' position. If all some the trees are non-synthetic, returns a range position enclosing the non-synthetic trees Otherwise returns a synthetic offset position to point.

    Definition Classes
    Positions
  123. abstract def wrappingPos(default: Position, trees: List[Tree]): Position

    A position that wraps a set of trees.

    A position that wraps a set of trees. The point of the wrapping position is the point of the default position. If some of the trees are ranges, returns a range position enclosing all ranges Otherwise returns default position.

    Definition Classes
    Positions

Concrete Value Members

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

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

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

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

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

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

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

    Implicit information
    This member is added by an implicit conversion from Universe to ArrowAssoc[Universe] 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

    Test two objects for equality.

    Test two objects for equality. The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    Any
  8. object ConcreteTypeTag extends Serializable

  9. def EmptyTermName: TermName

    Definition Classes
    Names
  10. object EmptyTree extends Tree with TermTree with Product with Serializable

    The empty tree

  11. def EmptyTypeName: TypeName

    Definition Classes
    Names
  12. object TypeTag extends Serializable

  13. def TypeTree(tp: Type): TypeTree

    Definition Classes
    Trees
  14. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown
    ClassCastException

    if the receiver object is not an instance of the erasure of type T0.

  15. def clone(): AnyRef

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  16. def copyClassDef(tree: Tree)(mods: Modifiers = null, name: Name = null, tparams: List[TypeDef] = null, impl: Template = null): ClassDef

    Definition Classes
    Trees
  17. def copyDefDef(tree: Tree)(mods: Modifiers = null, name: Name = null, tparams: List[TypeDef] = null, vparamss: List[List[ValDef]] = null, tpt: Tree = null, rhs: Tree = null): DefDef

    Definition Classes
    Trees
  18. def copyValDef(tree: Tree)(mods: Modifiers = null, name: Name = null, tpt: Tree = null, rhs: Tree = null): ValDef

    Definition Classes
    Trees
  19. def deriveCaseDef(cdef: Tree)(applyToBody: (Tree) ⇒ Tree): CaseDef

    Definition Classes
    Trees
  20. def deriveClassDef(cdef: Tree)(applyToImpl: (Template) ⇒ Template): ClassDef

    Definition Classes
    Trees
  21. def deriveDefDef(ddef: Tree)(applyToRhs: (Tree) ⇒ Tree): DefDef

    Definition Classes
    Trees
  22. def deriveLabelDef(ldef: Tree)(applyToRhs: (Tree) ⇒ Tree): LabelDef

    Definition Classes
    Trees
  23. def deriveModuleDef(mdef: Tree)(applyToImpl: (Template) ⇒ Template): ModuleDef

    Definition Classes
    Trees
  24. def deriveTemplate(templ: Tree)(applyToBody: (List[Tree]) ⇒ List[Tree]): Template

    Definition Classes
    Trees
  25. def deriveValDef(vdef: Tree)(applyToRhs: (Tree) ⇒ Tree): ValDef

    Definition Classes
    Trees
  26. def ensuring(cond: (Universe) ⇒ Boolean, msg: ⇒ Any): Universe

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

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

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

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

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

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

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

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

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  33. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

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

    A representation that corresponds to the dynamic class of the receiver object.

    A representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    Definition Classes
    AnyRef → Any
    Note

    not specified by SLS as a member of AnyRef

  35. def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in Any.

    returns

    the hash code value for this object.

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

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  37. def mkSilentFrontEnd(): FrontEnd

    Creates a UI-less reporter that simply accumulates all the messages

    Creates a UI-less reporter that simply accumulates all the messages

    Definition Classes
    FrontEnds
  38. final def ne(arg0: AnyRef): Boolean

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

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

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  40. final def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  41. def reify[T](expr: T): Expr[T]

    Given an expression, generate a tree that when compiled and executed produces the original tree.

    Given an expression, generate a tree that when compiled and executed produces the original tree. The produced tree will be bound to the Universe it was called from.

    For instance, given the abstract syntax tree representation of the <[ x + 1 ]> expression:

    Apply(Select(Ident("x"), "+"), List(Literal(Constant(1))))

    The reifier transforms it to the following expression:

    <[ val $mr: scala.reflect.api.Universe = <reference to the Universe that calls the reify> $mr.Expr[Int]($mr.Apply($mr.Select($mr.Ident($mr.newFreeVar("x", <Int>, x), "+"), List($mr.Literal($mr.Constant(1)))))) ]>

    Reification performs expression splicing (when processing Expr.eval and Expr.value) and type splicing (for every type T that has a TypeTag[T] implicit in scope):

    val two = mirror.reify(2) // Literal(Constant(2)) val four = mirror.reify(two.eval + two.eval) // Apply(Select(two.tree, newTermName("$plus")), List(two.tree))

    def macroImpl[T](c: Context) = { ... // T here is just a type parameter, so the tree produced by reify won't be of much use in a macro expansion // however, if T were annotated with c.TypeTag (which would declare an implicit parameter for macroImpl) // then reification would subtitute T with the TypeTree that was used in a TypeApply of this particular macro invocation val factory = c.reify{ new Queryable[T] } ... }

    The transformation looks mostly straightforward, but it has its tricky parts: * Reifier retains symbols and types defined outside the reified tree, however locally defined entities get erased and replaced with their original trees * Free variables are detected and wrapped in symbols of the type FreeVar * Mutable variables that are accessed from a local function are wrapped in refs * Since reified trees can be compiled outside of the scope they've been created in, special measures are taken to ensure that all members accessed in the reifee remain visible

    Annotations
    @macroImpl( referenceToMacroImpl = Universe.reify[T] )
  42. val self: Any

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

    Implicit information
    This member is added by an implicit conversion from Universe to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  44. def show(tree: Tree, mkPrinter: (PrintWriter) ⇒ TreePrinter = newTreePrinter): String

    Definition Classes
    TreePrinters
  45. def showRaw(tree: Tree): String

    Definition Classes
    TreePrinters
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    AnyRef → Any
  48. val treeCopy: TreeCopier

    Definition Classes
    Trees
  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. def xtransform(transformer: Transformer, tree: Tree): Tree

    Attributes
    protected
    Definition Classes
    Trees
  53. def xtraverse(traverser: Traverser, tree: Tree): Unit

    Attributes
    protected
    Definition Classes
    Trees
  54. def [B](y: B): (Universe, B)

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

Deprecated Value Members

  1. def x: Universe

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

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Universe

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

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Importers

Inherited from FrontEnds

Inherited from ToolBoxes

Inherited from TreeBuildUtil

Inherited from ClassLoaders

Inherited from StandardNames

Inherited from TreePrinters

Inherited from TypeTags

Inherited from StandardDefinitions

Inherited from StandardTypes

Inherited from Exprs

Inherited from Positions

Inherited from AnnotationInfos

Inherited from Trees

Inherited from Names

Inherited from Scopes

Inherited from Constants

Inherited from Types

Inherited from FreeVars

Inherited from Symbols

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from Universe to StringFormat

Inherited by implicit conversion any2stringadd from Universe to StringAdd

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

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