W3cubDocs

/Scala 2.12 Reflection

Package scala.reflect.runtime

package runtime

Entry points into runtime reflection. See the overview page for details on how to use them.

Source
package.scala
Linear Supertypes

Type Members

class JavaUniverse extends internal.SymbolTable with JavaUniverseForce with ReflectSetup with SymbolTable

An implementation of scala.reflect.api.Universe for runtime reflection using JVM classloaders.

Should not be instantiated directly, use scala.reflect.runtime.universe instead.

trait JavaUniverseForce extends AnyRef

Value Members

macro def currentMirror: Mirror

The runtime reflection mirror that corresponds to the current lexical context. It's typically equivalent to universe.runtimeMirror(getClass.getClassLoader) invoked at the call site.

lazy val universe: api.JavaUniverse

The entry point into Scala runtime reflection.

To use Scala runtime reflection, simply use or import scala.reflect.runtime.universe._

See scala.reflect.api.Universe or the Reflection Guide: Universes for more details.

object ReflectionUtils

© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.12.9/scala-reflect/scala/reflect/runtime/index.html