public interface ScalaInstance
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.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
actualVersion()
The unique identifier for this Scala instance, usually obtained
(but not necessarily) from `compiler.properties` files.
|
java.io.File[] |
allJars()
All jar files provided by this Scala instance.
|
java.io.File |
compilerJar()
Deprecated.
Only `jars` can be reliably provided for modularized Scala (since 0.13.0).
|
java.io.File |
libraryJar()
Deprecated.
Only `jars` can be reliably provided for modularized Scala (since 0.13.0).
|
java.lang.ClassLoader |
loader()
A class loader providing access to the classes and resources in the library and compiler jars.
|
java.io.File[] |
otherJars()
Deprecated.
Only `jars` can be reliably provided for modularized Scala (since 0.13.0).
|
java.lang.String |
version()
Scala version for this
ScalaInstance. |
java.lang.String version()
ScalaInstance.
It need not to be unique and can be dynamic (e.g. 2.10.0-SNAPSHOT).java.lang.ClassLoader loader()
@Deprecated java.io.File libraryJar()
@Deprecated java.io.File compilerJar()
@Deprecated java.io.File[] otherJars()
java.io.File[] allJars()
java.lang.String actualVersion()