All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.reflect.api.JavaUniverse.scala Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
package scala.reflect
package api

// [Martin] Moved to compiler because it needs to see runtime.Universe
// The two will be united in scala-reflect anyway.
trait JavaUniverse extends Universe with Mirrors with TagInterop { self =>

  type RuntimeClass = java.lang.Class[_]

  override type Mirror >: Null <: JavaMirror

  trait JavaMirror extends MirrorOf[self.type] with RuntimeMirror {
    val classLoader: ClassLoader
    override def toString = s"JavaMirror with ${runtime.ReflectionUtils.show(classLoader)}"
  }

  def runtimeMirror(cl: ClassLoader): Mirror
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy