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

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

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

### Deprecated Value Members

1.  def /:[B](z: B)(op: (B, A) ⇒ B): B
   Definition Classes
     TraversableOnce → GenTraversableOnce
   Annotations
     @deprecated
   Deprecated

     (Since version 2.12.10) Use foldLeft instead of /:

2.  def :\[B](z: B)(op: (A, B) ⇒ B): B
   Definition Classes
     TraversableOnce → GenTraversableOnce
   Annotations
     @deprecated
   Deprecated

     (Since version 2.12.10) Use foldRight instead of :\

### 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