scala.reflect.runtime

JavaToScala

trait JavaToScala extends ConversionUtil

Self Type
SymbolTable
Source
JavaToScala.scala
Linear Supertypes
ConversionUtil, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. JavaToScala
  2. ConversionUtil
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. class TwoWayCache[J, S] extends AnyRef

    A cache that maintains a bijection between Java reflection type J and Scala reflection type S.

Abstract Value Members

  1. abstract def transformedType(sym: Symbol): Type

    the type of this symbol after Scala -> Java transformsi in refChecks, uncurry, erasure

    the type of this symbol after Scala -> Java transformsi in refChecks, uncurry, erasure

    Definition Classes
    ConversionUtil
  2. abstract def typeToJavaClass(tpe: Type): Class[_]

    The Java class thaty given type compiles to

    The Java class thaty given type compiles to

    Definition Classes
    ConversionUtil

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val classCache: TwoWayCache[Class[_], Symbol]

    Attributes
    protected
    Definition Classes
    ConversionUtil
  8. def classToScala(jclazz: Class[_]): Symbol

    The Scala class that corresponds to a given Java class.

    The Scala class that corresponds to a given Java class.

    jclazz

    The Java class

    returns

    A Scala class symbol that reflects all elements of the Java class, in the form they appear in the Scala pickling info, or, if that is not available, wrapped from the Java reflection info.

  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def constrToScala(jconstr: java.lang.reflect.Constructor[_]): Symbol

    The Scala constructor corresponding to given Java constructor.

    The Scala constructor corresponding to given Java constructor.

    jconstr

    The Java constructor

    returns

    A Scala method object that corresponds to jconstr.

  11. val constructorCache: TwoWayCache[java.lang.reflect.Constructor[_], Symbol]

    Attributes
    protected
    Definition Classes
    ConversionUtil
  12. def defaultReflectiveClassLoader(): ClassLoader

    Attributes
    protected
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def erasesTo(meth: Symbol, jconstr: java.lang.reflect.Constructor[_]): Boolean

    Does constructor meth erase to Java method jconstr? This is true if the Java constructor type is the same as the Scala constructor type after performing all Scala-specific transformations in InfoTransformers.

    Does constructor meth erase to Java method jconstr? This is true if the Java constructor type is the same as the Scala constructor type after performing all Scala-specific transformations in InfoTransformers. (to be done)

    Attributes
    protected
    Definition Classes
    ConversionUtil
  16. def erasesTo(meth: Symbol, jmeth: Method): Boolean

    Does method meth erase to Java method jmeth? This is true if the Java method type is the same as the Scala method type after performing all Scala-specific transformations in InfoTransformers.

    Does method meth erase to Java method jmeth? This is true if the Java method type is the same as the Scala method type after performing all Scala-specific transformations in InfoTransformers. (to be done)

    Attributes
    protected
    Definition Classes
    ConversionUtil
  17. val fieldCache: TwoWayCache[Field, Symbol]

    Attributes
    protected
    Definition Classes
    ConversionUtil
  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def genericDeclarationToScala(jdecl: GenericDeclaration): Symbol

    The Scala symbol that corresponds to a given Java generic declaration (class, method, or constructor)

  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isJavaClass(path: String): Boolean

    Does path correspond to a Java class with that fully qualified name?

  24. def javaClass(path: String, classLoader: ClassLoader): Class[_]

  25. def javaClass(path: String): Class[_]

    Paul: It seems the default class loader does not pick up root classes, whereas the system classloader does.

    Paul: It seems the default class loader does not pick up root classes, whereas the system classloader does. Can you check with your newly acquired classloader fu whether this implementation makes sense?

  26. def makeScalaPackage(fullname: String): Symbol

    The Scala package with given fully qualified name.

    The Scala package with given fully qualified name. Unlike packageNameToScala, this one bypasses the cache.

  27. val methodCache: TwoWayCache[Method, Symbol]

    Attributes
    protected
    Definition Classes
    ConversionUtil
  28. def methodToScala(jmeth: Method): Symbol

    The Scala method corresponding to given Java method.

    The Scala method corresponding to given Java method.

    jmeth

    The Java method

    returns

    A Scala method object that corresponds to jmeth.

  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. val packageCache: TwoWayCache[Package, Symbol]

    Attributes
    protected
    Definition Classes
    ConversionUtil
  33. def packageNameToScala(fullname: String): Symbol

    The Scala package with given fully qualified name.

  34. def packageToScala(jpkg: Package): Symbol

    The Scala package corresponding to given Java package

  35. var parentsLevel: Int

    used to avoid cyclies

  36. var pendingLoadActions: List[() ⇒ Unit]

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. val tparamCache: TwoWayCache[java.lang.reflect.TypeVariable[_], Symbol]

    Attributes
    protected
    Definition Classes
    ConversionUtil
  40. def tparamToScala(jparam: java.lang.reflect.TypeVariable[_ <: java.lang.reflect.GenericDeclaration]): Symbol

    The Scala type parameter that corresponds to a given Java type parameter.

    The Scala type parameter that corresponds to a given Java type parameter.

    jparam

    The Java type parameter

    returns

    A Scala type parameter symbol that has the same owner and name as the Java type parameter

  41. def typeToScala(jtpe: Type): Type

    The Scala type that corresponds to given Java type

  42. def unpickleClass(clazz: Symbol, module: Symbol, jclazz: Class[_]): Unit

    Generate types for top-level Scala root class and root companion object from the pickled information stored in a corresponding Java class

    Generate types for top-level Scala root class and root companion object from the pickled information stored in a corresponding Java class

    clazz

    The top-level Scala class for which info is unpickled

    module

    The top-level Scala companion object for which info is unpickled

    jclazz

    The Java class which contains the unpickled information in a ScalaSignature or ScalaLongSignature annotation.

  43. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  45. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ConversionUtil

Inherited from AnyRef

Inherited from Any