Trait scala.reflect.api.Scopes
trait Scopes extends AnyRef
Value Members
final def !=(arg0: Any): Boolean
final def ##(): Int
def +(other: String): String
def ->[B](y: B): (Scopes, B)
final def ==(arg0: Any): Boolean
final def asInstanceOf[T0]: T0
def clone(): AnyRef
def ensuring(cond: (Scopes) => Boolean, msg: => Any): Scopes
def ensuring(cond: (Scopes) => Boolean): Scopes
def ensuring(cond: Boolean, msg: => Any): Scopes
def ensuring(cond: Boolean): Scopes
final def eq(arg0: AnyRef): Boolean
def equals(arg0: AnyRef): Boolean
def finalize(): Unit
final def getClass(): Class[_ <: AnyRef]
def hashCode(): Int
final def isInstanceOf[T0]: Boolean
final def ne(arg0: AnyRef): Boolean
final def notify(): Unit
final def notifyAll(): Unit
final def synchronized[T0](arg0: => T0): T0
def toString(): String
final def wait(): Unit
final def wait(arg0: Long, arg1: Int): Unit
final def wait(arg0: Long): Unit
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
anddecls
defined in scala.reflect.api.Types#TypeApi. Such scopes support thesorted
method, which sorts members in declaration order.