Packages

final class ScalaInstance extends xsbti.compile.ScalaInstance

A Scala instance encapsulates all the information that is bound to a concrete Scala version, like the loader or all the JARs required for Scala compilation: library jar, compiler jar and others.

Both a ClassLoader and the jars are required because the compiler's boot classpath requires the location of the library and compiler jar on the classpath to compile any Scala program and macros.

Note

A jar can actually be any valid classpath entry, not just a jar file.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaInstance
  2. ScalaInstance
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaInstance(version: String, loader: ClassLoader, libraryJar: File, compilerJar: File, allJars: Array[File], explicitActual: Option[String])

    version

    Version used to obtain the Scala compiled classes.

    loader

    Class loader used to load the Scala classes.

    libraryJar

    Classpath entry that stores the Scala library classes.

    compilerJar

    Classpath entry that stores the Scala compiler classes.

    allJars

    Classpath entries for the loader.

    explicitActual

    Classpath entry that stores the Scala compiler classes.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. lazy val actualVersion: String

    Get version of Scala in the compiler.properties file from the loader.

    Get version of Scala in the compiler.properties file from the loader. This version may be different than the one passed in by version.

    Definition Classes
    ScalaInstanceScalaInstance
  5. val allJars: Array[File]
    Definition Classes
    ScalaInstanceScalaInstance
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val compilerJar: File
    Definition Classes
    ScalaInstanceScalaInstance
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. val explicitActual: Option[String]
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isManagedVersion: Boolean

    Check whether scalaInstance comes from a managed (i.e.

    Check whether scalaInstance comes from a managed (i.e. ivy-resolved) scala **or** if it's a free-floating ScalaInstance, in which case we need to do tricks in the classpaths because it won't be on them.

  17. val libraryJar: File
    Definition Classes
    ScalaInstanceScalaInstance
  18. val loader: ClassLoader
    Definition Classes
    ScalaInstanceScalaInstance
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    ScalaInstance → AnyRef → Any
  24. val version: String
    Definition Classes
    ScalaInstanceScalaInstance
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def otherJars(): Array[File]

    Definition Classes
    ScalaInstanceScalaInstance
    Deprecated

    Only jars can be reliably provided for modularized Scala (since 0.13.0).

Inherited from AnyRef

Inherited from Any

Ungrouped