Scala Reflection Library2.12.5 < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package reflect
  Definition Classes
    scala
-  package api

  EXPERIMENTAL

  EXPERIMENTAL

  The Scala Reflection API (located in scala-reflect.jar).

  In Scala 2.10.0, the Scala Reflection API and its implementation have an "experimental" status. This means that the API and the docs are not complete and can be changed in binary- and source-incompatible manner in 2.10.1. This also means that the implementation has some known issues.

  The following types are the backbone of the Scala Reflection API, and serve as a good starting point for information about Scala Reflection:

  - scala.reflect.api.Symbols
  - scala.reflect.api.Types
  - scala.reflect.api.Mirrors
  - scala.reflect.api.Universe

  For more information about Scala Reflection, see the Reflection Guide

  Definition Classes
    reflect
-  trait Scopes extends AnyRef

  EXPERIMENTAL

  EXPERIMENTAL

  This trait provides support for scopes in the reflection API.

  A scope object generally maps names to symbols available in a corresponding lexical scope. Scopes can be nested. The base type exposed to the reflection API, however, only exposes a minimal interface, representing a scope as an iterable of symbols.

  For rare occasions when it is necessary to create a scope manually, e.g., to populate members of scala.reflect.api.Types#RefinedType, there is the `newScopeWith` function.

  Additional functionality is exposed in member scopes that are returned by `members` and `decls` defined in scala.reflect.api.Types#TypeApi. Such scopes support the `sorted` method, which sorts members in declaration order.

  Definition Classes
    api
- MemberScope
- MemberScopeApi
- Scope
- ScopeApi

a

scala.reflect.api.Scopes

# MemberScope 

###

#### abstract type MemberScope >: Null <: Universe.MemberScopeApi with Universe.Scope

The type of member scopes, as in class definitions, for example.

Source
  Scopes.scala

Linear Supertypes
Universe.<refinement>, Universe.MemberScopeApi, Universe.ScopeApi, collection.Iterable[Universe.Symbol], IterableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]], Equals, GenIterable[Universe.Symbol], GenIterableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]], collection.Traversable[Universe.Symbol], GenTraversable[Universe.Symbol], GenericTraversableTemplate[Universe.Symbol, collection.Iterable], TraversableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]], GenTraversableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]], Parallelizable[Universe.Symbol, ParIterable[Universe.Symbol]], collection.TraversableOnce[Universe.Symbol], GenTraversableOnce[Universe.Symbol], FilterMonadic[Universe.Symbol, collection.Iterable[Universe.Symbol]], HasNewBuilder[Universe.Symbol, collection.Iterable[Universe.Symbol]], AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. MemberScope
2. <refinement>
3. MemberScopeApi
4. ScopeApi
5. Iterable
6. IterableLike
7. Equals
8. GenIterable
9. GenIterableLike
10. Traversable
11. GenTraversable
12. GenericTraversableTemplate
13. TraversableLike
14. GenTraversableLike
15. Parallelizable
16. TraversableOnce
17. GenTraversableOnce
18. FilterMonadic
19. HasNewBuilder
20. AnyRef
21. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Type Members

1.  type Self = Repr
   Attributes
     protected[this]
   Definition Classes
     TraversableLike
2.  class WithFilter extends FilterMonadic[A, Repr]
   Definition Classes
     TraversableLike

### Abstract Value Members

1.  abstract def iterator: collection.Iterator[A]
   Definition Classes
     IterableLike → GenIterableLike
2.  abstract def sorted: List[Universe.Symbol]

   Sorts the symbols included in this scope so that: 1) Symbols appear in the linearization order of their owners.

   Sorts the symbols included in this scope so that: 1) Symbols appear in the linearization order of their owners. 2) Symbols with the same owner appear in same order of their declarations. 3) Synthetic members (e.g. getters/setters for vals/vars) might appear in arbitrary order.

   Definition Classes
     MemberScopeApi

### Concrete Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That
   Definition Classes
     TraversableLike → GenTraversableLike
4.  def ++:[B >: A, That](that: collection.Traversable[B])(implicit bf: CanBuildFrom[Repr, B, That]): That
   Definition Classes
     TraversableLike
5.  def ++:[B >: A, That](that: collection.TraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That
   Definition Classes
     TraversableLike
6.  def /:[B](z: B)(op: (B, A) ⇒ B): B
   Definition Classes
     TraversableOnce → GenTraversableOnce
7.  def :\[B](z: B)(op: (A, B) ⇒ B): B
   Definition Classes
     TraversableOnce → GenTraversableOnce
8.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
9.  def addString(b: StringBuilder): StringBuilder
   Definition Classes
     TraversableOnce
10.  def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
      TraversableOnce
11.  def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
      TraversableOnce
12.  def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
13.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
14.  def canEqual(that: Any): Boolean
    Definition Classes
      IterableLike → Equals
15.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )
16.  def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Repr, B, That]): That
    Definition Classes
      TraversableLike → GenTraversableLike
17.  def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
    Definition Classes
      TraversableOnce
18.  def companion: GenericCompanion[collection.Iterable]
    Definition Classes
      Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
19.  def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
      IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
20.  def copyToArray[B >: A](xs: Array[B]): Unit
    Definition Classes
      TraversableOnce → GenTraversableOnce
21.  def copyToArray[B >: A](xs: Array[B], start: Int): Unit
    Definition Classes
      TraversableOnce → GenTraversableOnce
22.  def copyToBuffer[B >: A](dest: Buffer[B]): Unit
    Definition Classes
      TraversableOnce
23.  def count(p: (A) ⇒ Boolean): Int
    Definition Classes
      TraversableOnce → GenTraversableOnce
24.  def drop(n: Int): Repr
    Definition Classes
      IterableLike → TraversableLike → GenTraversableLike
25.  def dropRight(n: Int): Repr
    Definition Classes
      IterableLike
26.  def dropWhile(p: (A) ⇒ Boolean): Repr
    Definition Classes
      TraversableLike → GenTraversableLike
27.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
28.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
29.  def exists(p: (A) ⇒ Boolean): Boolean
    Definition Classes
      IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
30.  def filter(p: (A) ⇒ Boolean): Repr
    Definition Classes
      TraversableLike → GenTraversableLike
31.  def filterNot(p: (A) ⇒ Boolean): Repr
    Definition Classes
      TraversableLike → GenTraversableLike
32.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
33.  def find(p: (A) ⇒ Boolean): Option[A]
    Definition Classes
      IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
34.  def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That
    Definition Classes
      TraversableLike → GenTraversableLike → FilterMonadic
35.  def flatten[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): CC[B]
    Definition Classes
      GenericTraversableTemplate
36.  def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
      TraversableOnce → GenTraversableOnce
37.  def foldLeft[B](z: B)(op: (B, A) ⇒ B): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
38.  def foldRight[B](z: B)(op: (A, B) ⇒ B): B
    Definition Classes
      IterableLike → TraversableOnce → GenTraversableOnce
39.  def forall(p: (A) ⇒ Boolean): Boolean
    Definition Classes
      IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
40.  def foreach[U](f: (A) ⇒ U): Unit
    Definition Classes
      IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
41.  def genericBuilder[B]: Builder[B, CC[B]]
    Definition Classes
      GenericTraversableTemplate
42.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
43.  def groupBy[K](f: (A) ⇒ K): Map[K, Repr]
    Definition Classes
      TraversableLike → GenTraversableLike
44.  def grouped(size: Int): collection.Iterator[Repr]
    Definition Classes
      IterableLike
45.  def hasDefiniteSize: Boolean
    Definition Classes
      TraversableLike → TraversableOnce → GenTraversableOnce
46.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
47.  def head: A
    Definition Classes
      IterableLike → TraversableLike → GenTraversableLike
48.  def headOption: Option[A]
    Definition Classes
      TraversableLike → GenTraversableLike
49.  def init: Repr
    Definition Classes
      TraversableLike → GenTraversableLike
50.  def inits: collection.Iterator[Repr]
    Definition Classes
      TraversableLike
51.  def isEmpty: Boolean
    Definition Classes
      IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
52.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
53.  final def isTraversableAgain: Boolean
    Definition Classes
      TraversableLike → GenTraversableLike → GenTraversableOnce
54.  def last: A
    Definition Classes
      TraversableLike → GenTraversableLike
55.  def lastOption: Option[A]
    Definition Classes
      TraversableLike → GenTraversableLike
56.  def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That
    Definition Classes
      TraversableLike → GenTraversableLike → FilterMonadic
57.  def max[B >: A](implicit cmp: Ordering[B]): A
    Definition Classes
      TraversableOnce → GenTraversableOnce
58.  def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
    Definition Classes
      TraversableOnce → GenTraversableOnce
59.  def min[B >: A](implicit cmp: Ordering[B]): A
    Definition Classes
      TraversableOnce → GenTraversableOnce
60.  def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
    Definition Classes
      TraversableOnce → GenTraversableOnce
61.  def mkString: String
    Definition Classes
      TraversableOnce → GenTraversableOnce
62.  def mkString(sep: String): String
    Definition Classes
      TraversableOnce → GenTraversableOnce
63.  def mkString(start: String, sep: String, end: String): String
    Definition Classes
      TraversableOnce → GenTraversableOnce
64.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
65.  def newBuilder: Builder[A, CC[A]]
    Attributes
      protected[this]
    Definition Classes
      GenericTraversableTemplate → HasNewBuilder
66.  def nonEmpty: Boolean
    Definition Classes
      TraversableOnce → GenTraversableOnce
67.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
68.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
69.  def par: ParRepr
    Definition Classes
      Parallelizable
70.  def parCombiner: Combiner[A, ParIterable[A]]
    Attributes
      protected[this]
    Definition Classes
      TraversableLike → Parallelizable
71.  def partition(p: (A) ⇒ Boolean): (Repr, Repr)
    Definition Classes
      TraversableLike → GenTraversableLike
72.  def product[B >: A](implicit num: Numeric[B]): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
73.  def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1
    Definition Classes
      TraversableOnce → GenTraversableOnce
74.  def reduceLeft[B >: A](op: (B, A) ⇒ B): B
    Definition Classes
      TraversableOnce
75.  def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]
    Definition Classes
      TraversableOnce → GenTraversableOnce
76.  def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
      TraversableOnce → GenTraversableOnce
77.  def reduceRight[B >: A](op: (A, B) ⇒ B): B
    Definition Classes
      IterableLike → TraversableOnce → GenTraversableOnce
78.  def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]
    Definition Classes
      TraversableOnce → GenTraversableOnce
79.  def repr: Repr
    Definition Classes
      TraversableLike → GenTraversableLike
80.  def reversed: List[A]
    Attributes
      protected[this]
    Definition Classes
      TraversableOnce
81.  def sameElements[B >: A](that: GenIterable[B]): Boolean
    Definition Classes
      IterableLike → GenIterableLike
82.  def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Repr, B, That]): That
    Definition Classes
      TraversableLike → GenTraversableLike
83.  def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That
    Definition Classes
      TraversableLike → GenTraversableLike
84.  def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That
    Definition Classes
      TraversableLike → GenTraversableLike
    Annotations
      @migration
    Migration

      (Changed in version 2.9.0) The behavior of `scanRight` has changed. The previous behavior can be reproduced with scanRight.reverse.

85.  def seq: collection.Iterable[A]
    Definition Classes
      Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
86.  def size: Int
    Definition Classes
      TraversableOnce → GenTraversableOnce
87.  def sizeHintIfCheap: Int
    Attributes
      protected[scala.collection]
    Definition Classes
      GenTraversableOnce
88.  def slice(from: Int, until: Int): Repr
    Definition Classes
      IterableLike → TraversableLike → GenTraversableLike
89.  def sliding(size: Int, step: Int): collection.Iterator[Repr]
    Definition Classes
      IterableLike
90.  def sliding(size: Int): collection.Iterator[Repr]
    Definition Classes
      IterableLike
91.  def span(p: (A) ⇒ Boolean): (Repr, Repr)
    Definition Classes
      TraversableLike → GenTraversableLike
92.  def splitAt(n: Int): (Repr, Repr)
    Definition Classes
      TraversableLike → GenTraversableLike
93.  def stringPrefix: String
    Definition Classes
      TraversableLike → GenTraversableLike
94.  def sum[B >: A](implicit num: Numeric[B]): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
95.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
96.  def tail: Repr
    Definition Classes
      TraversableLike → GenTraversableLike
97.  def tails: collection.Iterator[Repr]
    Definition Classes
      TraversableLike
98.  def take(n: Int): Repr
    Definition Classes
      IterableLike → TraversableLike → GenTraversableLike
99.  def takeRight(n: Int): Repr
    Definition Classes
      IterableLike
100.  def takeWhile(p: (A) ⇒ Boolean): Repr
     Definition Classes
       IterableLike → TraversableLike → GenTraversableLike
101.  def thisCollection: collection.Iterable[A]
     Attributes
       protected[this]
     Definition Classes
       IterableLike → TraversableLike
102.  def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A @scala.annotation.unchecked.uncheckedVariance]]): Col[A @scala.annotation.unchecked.uncheckedVariance]
     Definition Classes
       TraversableLike → TraversableOnce → GenTraversableOnce
103.  def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
     Definition Classes
       TraversableOnce → GenTraversableOnce
104.  def toBuffer[B >: A]: Buffer[B]
     Definition Classes
       TraversableOnce → GenTraversableOnce
105.  def toCollection(repr: Repr): collection.Iterable[A]
     Attributes
       protected[this]
     Definition Classes
       IterableLike → TraversableLike
106.  def toIndexedSeq: collection.immutable.IndexedSeq[A]
     Definition Classes
       TraversableOnce → GenTraversableOnce
107.  def toIterable: collection.Iterable[A]
     Definition Classes
       IterableLike → TraversableOnce → GenTraversableOnce
108.  def toIterator: collection.Iterator[A]
     Definition Classes
       IterableLike → TraversableLike → GenTraversableOnce
     Annotations
       @deprecatedOverriding( ... , "2.11.0" )
109.  def toList: List[A]
     Definition Classes
       TraversableOnce → GenTraversableOnce
110.  def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]
     Definition Classes
       TraversableOnce → GenTraversableOnce
111.  def toSeq: collection.Seq[A]
     Definition Classes
       TraversableOnce → GenTraversableOnce
112.  def toSet[B >: A]: Set[B]
     Definition Classes
       TraversableOnce → GenTraversableOnce
113.  def toStream: collection.immutable.Stream[A]
     Definition Classes
       IterableLike → TraversableLike → GenTraversableOnce
114.  def toString(): String
     Definition Classes
       TraversableLike → Any
115.  def toTraversable: collection.Traversable[A]
     Definition Classes
       TraversableLike → TraversableOnce → GenTraversableOnce
     Annotations
       @deprecatedOverriding( ... , "2.11.0" )
116.  def toVector: Vector[A]
     Definition Classes
       TraversableOnce → GenTraversableOnce
117.  def transpose[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): CC[CC[B] @scala.annotation.unchecked.uncheckedVariance]
     Definition Classes
       GenericTraversableTemplate
     Annotations
       @migration
     Migration

       (Changed in version 2.9.0) `transpose` throws an `IllegalArgumentException` if collections are not uniformly sized.

118.  def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (CC[A1], CC[A2])
     Definition Classes
       GenericTraversableTemplate
119.  def unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (CC[A1], CC[A2], CC[A3])
     Definition Classes
       GenericTraversableTemplate
120.  def view(from: Int, until: Int): IterableView[A, Repr]
     Definition Classes
       IterableLike → TraversableLike
121.  def view: IterableView[A, Repr]
     Definition Classes
       IterableLike → TraversableLike
122.  final def wait(): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
123.  final def wait(arg0: Long, arg1: Int): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
124.  final def wait(arg0: Long): Unit
     Definition Classes
       AnyRef
     Annotations
       @native() @throws( ... )
125.  def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Repr]
     Definition Classes
       TraversableLike → FilterMonadic
126.  def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Repr, (A1, B), That]): That
     Definition Classes
       IterableLike → GenIterableLike
127.  def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Repr, (A1, B), That]): That
     Definition Classes
       IterableLike → GenIterableLike
128.  def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Repr, (A1, Int), That]): That
     Definition Classes
       IterableLike → GenIterableLike

### Inherited from Universe.<refinement>

### Inherited from Universe.MemberScopeApi

### Inherited from Universe.ScopeApi

### Inherited from collection.Iterable[Universe.Symbol]

### Inherited from IterableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]]

### Inherited from Equals

### Inherited from GenIterable[Universe.Symbol]

### Inherited from GenIterableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]]

### Inherited from collection.Traversable[Universe.Symbol]

### Inherited from GenTraversable[Universe.Symbol]

### Inherited from GenericTraversableTemplate[Universe.Symbol, collection.Iterable]

### Inherited from TraversableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]]

### Inherited from GenTraversableLike[Universe.Symbol, collection.Iterable[Universe.Symbol]]

### Inherited from Parallelizable[Universe.Symbol, ParIterable[Universe.Symbol]]

### Inherited from collection.TraversableOnce[Universe.Symbol]

### Inherited from GenTraversableOnce[Universe.Symbol]

### Inherited from FilterMonadic[Universe.Symbol, collection.Iterable[Universe.Symbol]]

### Inherited from HasNewBuilder[Universe.Symbol, collection.Iterable[Universe.Symbol]]

### Inherited from AnyRef

### Inherited from Any

### Ungrouped