scala.reflect.generic

Universe

class Universe extends Symbols with Types with Constants with Scopes with Names with StdNames with Trees with AnnotationInfos with StandardDefinitions

attributes: abstract
source: Universe.scala
Inherited
  1. Hide All
  2. Show all
  1. StandardDefinitions
  2. AnnotationInfos
  3. Trees
  4. StdNames
  5. Names
  6. Scopes
  7. Constants
  8. Types
  9. Symbols
  10. AnyRef
  11. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new Universe()

Type Members

  1. class AbsDefinitions extends AnyRef

    attributes: abstract
  2. trait AbsLazyType extends AbsType

  3. class AbsScope extends Iterable[Symbol]

    attributes: abstract
  4. class AbsSymbol extends AnyRef

    attributes: abstract
  5. class AbsTreePrinter extends AnyRef

    attributes: abstract
  6. class AbsType extends AnyRef

    attributes: abstract
  7. class AbsTypeTree extends Tree with TypTree

    A synthetic term holding an arbitrary type.

  8. class Alternative(trees: List[Tree]) extends Tree with TermTree with Product

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

  9. class Annotated(annot: Tree, arg: Tree) extends Tree with Product

    A tree that has an annotation attached to it.

  10. type AnnotatedType <: Type

    attributes: abstract
    definition classes: Types
  11. class AnnotatedTypeExtractor extends AnyRef

    attributes: abstract
  12. type AnnotationInfo <: AnyRef

    attributes: abstract
    definition classes: AnnotationInfos
  13. class AnnotationInfoExtractor extends AnyRef

    attributes: abstract
  14. class AppliedTypeTree(tpt: Tree, args: List[Tree]) extends Tree with TypTree with Product

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

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

    Value application

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

    Dynamic value application.

  17. type ArrayAnnotArg <: ClassfileAnnotArg

    attributes: abstract
    definition classes: AnnotationInfos
  18. class ArrayAnnotArgExtractor extends AnyRef

    attributes: abstract
  19. class ArrayValue(elemtpt: Tree, elems: List[Tree]) extends Tree with TermTree with Product

    Array of expressions, needs to be translated in backend,

  20. class Assign(lhs: Tree, rhs: Tree) extends Tree with TermTree with Product

    Assignment

  21. class BackQuotedIdent extends Ident

  22. class Bind(name: Name, body: Tree) extends DefTree with Product

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

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

    Block of expressions (semicolon separated expressions)

  24. class CaseDef(pat: Tree, guard: Tree, body: Tree) extends Tree with Product

    Case clause in a pattern match, eliminated by TransMatch (except for occurrences in switch statements)

  25. class ClassDef(mods: Modifiers, name: Name, tparams: List[TypeDef], impl: Template) extends ImplDef with Product

    Class definition

  26. type ClassInfoType <: CompoundType

    attributes: abstract
    definition classes: Types
  27. class ClassInfoTypeExtractor extends AnyRef

    attributes: abstract
  28. type ClassfileAnnotArg <: AnyRef

    attributes: abstract
    definition classes: AnnotationInfos
  29. type CompoundType <: Type

    attributes: abstract
    definition classes: Types
  30. class CompoundTypeTree(templ: Template) extends Tree with TypTree with Product

    Intersection type <parent1> with .

  31. class Constant(value: Any) extends Product

  32. type ConstantType <: Type

    attributes: abstract
    definition classes: Types
  33. class ConstantTypeExtractor extends AnyRef

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

    Method definition

  35. class DefTree extends Tree with SymTree

    attributes: abstract
  36. type ExistentialType <: Type

    attributes: abstract
    definition classes: Types
  37. class ExistentialTypeExtractor extends AnyRef

    attributes: abstract
  38. class ExistentialTypeTree(tpt: Tree, whereClauses: List[Tree]) extends Tree with TypTree with Product

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

    Anonymous function, eliminated by analyzer

  40. class GenericApply extends Tree with TermTree

    attributes: abstract
  41. class Ident(name: Name) extends Tree with RefTree with Product

    Identifier <name>

  42. class If(cond: Tree, thenp: Tree, elsep: Tree) extends Tree with TermTree with Product

    Conditional expression

  43. class ImplDef extends MemberDef

    attributes: abstract
  44. class Import(expr: Tree, selectors: List[ImportSelector]) extends Tree with SymTree with Product

    Import clause

  45. class ImportSelector(name: Name, namePos: Int, rename: Name, renamePos: Int) extends Product

    Import selector

  46. class LabelDef(name: Name, params: List[Ident], rhs: Tree) extends DefTree with TermTree with Product

    Labelled expression - the symbols in the array (must be Idents!) are those the label takes as argument

  47. type LazyType <: Type with AbsLazyType

    attributes: abstract
    definition classes: Types
  48. class Literal(value: Constant) extends Tree with TermTree with Product

    Literal

  49. type LiteralAnnotArg <: ClassfileAnnotArg

    attributes: abstract
    definition classes: AnnotationInfos
  50. class LiteralAnnotArgExtractor extends AnyRef

    attributes: abstract
  51. class Match(selector: Tree, cases: List[CaseDef]) extends Tree with TermTree with Product

    Pattern matching expression (before TransMatch) Switch statements (after TransMatch)

  52. class MemberDef extends DefTree

    attributes: abstract
  53. type MethodType <: Type

    attributes: abstract
    definition classes: Types
  54. class MethodTypeExtractor extends AnyRef

    attributes: abstract
  55. class Modifiers(flags: Long, privateWithin: Name, annotations: List[Tree], positions: Map[Long, Position]) extends Product

    no summary matey

  56. class ModuleDef(mods: Modifiers, name: Name, impl: Template) extends ImplDef with Product

    Singleton object definition

  57. type Name <: AnyRef >: Null

    attributes: abstract
    definition classes: Names
  58. type NestedAnnotArg <: ClassfileAnnotArg

    attributes: abstract
    definition classes: AnnotationInfos
  59. class NestedAnnotArgExtractor extends AnyRef

    attributes: abstract
  60. class New(tpt: Tree) extends Tree with TermTree with Product

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

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

    Package clause

  62. type PolyType <: Type

    attributes: abstract
    definition classes: Types
  63. class PolyTypeExtractor extends AnyRef

    attributes: abstract
  64. type Position

    attributes: abstract
  65. trait RefTree extends Tree with SymTree

  66. type RefinedType <: CompoundType

    attributes: abstract
    definition classes: Types
  67. class RefinedTypeExtractor extends AnyRef

    attributes: abstract
  68. class Return(expr: Tree) extends Tree with TermTree with SymTree with Product

    Return expression

  69. type Scope <: AbsScope

    attributes: abstract
    definition classes: Scopes
  70. class Select(qualifier: Tree, name: Name) extends Tree with RefTree with Product

    Designator <qualifier> .

  71. class SelectFromArray(qualifier: Tree, name: Name, erasure: Type) extends Tree with TermTree with RefTree with Product

    Array selection <qualifier> .

  72. class SelectFromTypeTree(qualifier: Tree, name: Name) extends Tree with TypTree with RefTree with Product

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

  73. type SingleType <: Type

    attributes: abstract
    definition classes: Types
  74. class SingleTypeExtractor extends AnyRef

    attributes: abstract
  75. class SingletonTypeTree(ref: Tree) extends Tree with TypTree with Product

    Singleton type, eliminated by RefCheck

  76. class StandardNames extends AnyRef

  77. class Star(elem: Tree) extends Tree with TermTree with Product

    Repetition of pattern, eliminated by TransMatch

  78. class Super(qual: Name, mix: Name) extends Tree with TermTree with SymTree with Product

    Super reference

  79. type SuperType <: Type

    attributes: abstract
    definition classes: Types
  80. class SuperTypeExtractor extends AnyRef

    attributes: abstract
  81. trait SymTree extends Tree

  82. type Symbol <: AbsSymbol >: Null

    attributes: abstract
    definition classes: Symbols
  83. class Template(parents: List[Tree], self: ValDef, body: List[Tree]) extends Tree with SymTree with Product

    Instantiation template of a class or trait

  84. trait TermTree extends Tree

  85. class This(qual: Name) extends Tree with TermTree with SymTree with Product

    Self reference

  86. type ThisType <: Type

    attributes: abstract
    definition classes: Types
  87. class ThisTypeExtractor extends AnyRef

    attributes: abstract
  88. class Throw(expr: Tree) extends Tree with TermTree with Product

    Throw expression

  89. class Traverser extends AnyRef

  90. class Tree extends Product

    attributes: abstract
  91. class Try(block: Tree, catches: List[CaseDef], finalizer: Tree) extends Tree with TermTree with Product

  92. trait TypTree extends Tree

    A tree for a type.

  93. type Type <: AbsType >: Null

    attributes: abstract
    definition classes: Types
  94. class TypeApply(fun: Tree, args: List[Tree]) extends GenericApply with Product

    Type application

  95. type TypeBounds <: Type

    attributes: abstract
    definition classes: Types
  96. class TypeBoundsExtractor extends AnyRef

    attributes: abstract
  97. class TypeBoundsTree(lo: Tree, hi: Tree) extends Tree with TypTree with Product

  98. class TypeDef(mods: Modifiers, name: Name, tparams: List[TypeDef], rhs: Tree) extends MemberDef with Product

    Abstract type, type parameter, or type alias

  99. type TypeRef <: Type

    attributes: abstract
    definition classes: Types
  100. class TypeRefExtractor extends AnyRef

    attributes: abstract
  101. type TypeTree <: AbsTypeTree

    attributes: abstract
    definition classes: Trees
  102. class TypeTreeExtractor extends AnyRef

    attributes: abstract
  103. class Typed(expr: Tree, tpt: Tree) extends Tree with TermTree with Product

    Type annotation, eliminated by explicit outer

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

  105. class ValDef(mods: Modifiers, name: Name, tpt: Tree, rhs: Tree) extends ValOrDefDef with Product

    Value definition

  106. class ValOrDefDef extends MemberDef

    attributes: abstract

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

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

    attributes: final
    definition classes: Any
  3. def ##(): Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf[T0](): T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf[T0](): Boolean

    attributes: final
    definition classes: AnyRef
  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

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

    attributes: final
    definition classes: Any
  8. val AnnotatedType: AnnotatedTypeExtractor

    attributes: abstract
    definition classes: Types
  9. val AnnotationInfo: AnnotationInfoExtractor

    attributes: abstract
    definition classes: AnnotationInfos
  10. val ArrayAnnotArg: ArrayAnnotArgExtractor

    attributes: abstract
    definition classes: AnnotationInfos
  11. val BooleanTag: Int

    attributes: final
    definition classes: Constants
  12. val ByteTag: Int

    attributes: final
    definition classes: Constants
  13. val CharTag: Int

    attributes: final
    definition classes: Constants
  14. val ClassInfoType: ClassInfoTypeExtractor

    attributes: abstract
    definition classes: Types
  15. val ClassTag: Int

    attributes: final
    definition classes: Constants
  16. val ConstantType: ConstantTypeExtractor

    attributes: abstract
    definition classes: Types
  17. val DoubleTag: Int

    attributes: final
    definition classes: Constants
  18. object EmptyTree extends Tree with TermTree with Product

    The empty tree

  19. val EnumTag: Int

    attributes: final
    definition classes: Constants
  20. val ExistentialType: ExistentialTypeExtractor

    attributes: abstract
    definition classes: Types
  21. val FloatTag: Int

    attributes: final
    definition classes: Constants
  22. val IntTag: Int

    attributes: final
    definition classes: Constants
  23. def Literal(value: Any): Literal

    definition classes: Trees
  24. val LiteralAnnotArg: LiteralAnnotArgExtractor

    attributes: abstract
    definition classes: AnnotationInfos
  25. val LongTag: Int

    attributes: final
    definition classes: Constants
  26. val MethodType: MethodTypeExtractor

    attributes: abstract
    definition classes: Types
  27. def Modifiers(flags: Long): Modifiers

    definition classes: Trees
  28. def Modifiers(flags: Long, privateWithin: Name): Modifiers

    definition classes: Trees
  29. val NestedAnnotArg: NestedAnnotArgExtractor

    attributes: abstract
    definition classes: AnnotationInfos
  30. lazy val NoMods: Modifiers

    definition classes: Trees
  31. val NoPosition: Position

    attributes: abstract
  32. val NoPrefix: Type

    attributes: abstract
    definition classes: Types
  33. val NoSymbol: Symbol

    attributes: abstract
    definition classes: Symbols
  34. val NoTag: Int

    attributes: final
    definition classes: Constants
  35. val NoType: Type

    attributes: abstract
    definition classes: Types
  36. val NullTag: Int

    attributes: final
    definition classes: Constants
  37. val PolyType: PolyTypeExtractor

    attributes: abstract
    definition classes: Types
  38. val RefinedType: RefinedTypeExtractor

    attributes: abstract
    definition classes: Types
  39. val ShortTag: Int

    attributes: final
    definition classes: Constants
  40. val SingleType: SingleTypeExtractor

    attributes: abstract
    definition classes: Types
  41. val StringTag: Int

    attributes: final
    definition classes: Constants
  42. val SuperType: SuperTypeExtractor

    attributes: abstract
    definition classes: Types
  43. val ThisType: ThisTypeExtractor

    attributes: abstract
    definition classes: Types
  44. val TypeBounds: TypeBoundsExtractor

    attributes: abstract
    definition classes: Types
  45. val TypeRef: TypeRefExtractor

    attributes: abstract
    definition classes: Types
  46. val TypeTree: TypeTreeExtractor

    attributes: abstract
    definition classes: Trees
  47. val UnitTag: Int

    attributes: final
    definition classes: Constants
  48. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to 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 expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(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 typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  49. implicit def classfileAnnotArgManifest: ClassManifest[ClassfileAnnotArg]

    attributes: implicit abstract
    definition classes: AnnotationInfos
  50. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns 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
    definition classes: AnyRef
  51. val definitions: AbsDefinitions

    attributes: abstract
    definition classes: StandardDefinitions
  52. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other 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).

    arg0

    the object to compare against this object for reference equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  53. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

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

    definition classes: AnyRef → Any
  54. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

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

    attributes: protected
    definition classes: AnyRef
  55. def getClass(): java.lang.Class[_ <: java.lang.Object]

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

    Returns 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.

    attributes: final
    definition classes: AnyRef
  56. def hashCode(): Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  57. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.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 requested typed.

    returns

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

    attributes: final
    definition classes: Any
  58. val maxTostringRecursions: Int

    The maximum number of recursions allowed in toString

    The maximum number of recursions allowed in toString

    attributes: final
    definition classes: Types
  59. def mkTermName(name: Name): Name

    attributes: abstract
    definition classes: Names
  60. def mkTypeName(name: Name): Name

    attributes: abstract
    definition classes: Names
  61. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  62. def newScope(): Scope

    attributes: abstract
    definition classes: Scopes
  63. def newTermName(s: String): Name

    attributes: abstract
    definition classes: Names
  64. def newTermName(cs: Array[Byte], offset: Int, len: Int): Name

    attributes: abstract
    definition classes: Names
  65. def newTermName(cs: Array[Char], offset: Int, len: Int): Name

    attributes: abstract
    definition classes: Names
  66. def newTreePrinter(out: PrintWriter): AbsTreePrinter

    attributes: abstract
    definition classes: Trees
  67. def newTypeName(s: String): Name

    attributes: abstract
    definition classes: Names
  68. def newTypeName(cs: Array[Byte], offset: Int, len: Int): Name

    attributes: abstract
    definition classes: Names
  69. def newTypeName(cs: Array[Char], offset: Int, len: Int): Name

    attributes: abstract
    definition classes: Names
  70. val nme: StandardNames

    attributes: abstract
    definition classes: StdNames
  71. 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.

    attributes: final
    definition classes: AnyRef
  72. 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.

    attributes: final
    definition classes: AnyRef
  73. def synchronized[T0](arg0: T0): T0

    attributes: final
    definition classes: AnyRef
  74. def toString(): String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  75. def wait(): Unit

    attributes: final
    definition classes: AnyRef
  76. def wait(arg0: Long, arg1: Int): Unit

    attributes: final
    definition classes: AnyRef
  77. def wait(arg0: Long): Unit

    attributes: final
    definition classes: AnyRef