public interface ScalaCompiler
| Modifier and Type | Method and Description |
|---|---|
ClasspathOptions |
classpathOptions()
Return the
ClasspathOptions used by this instance of the compiler. |
void |
compile(java.io.File[] sources,
DependencyChanges changes,
AnalysisCallback callback,
xsbti.Logger log,
Reporter reporter,
CompileProgress progress,
CachedCompiler compiler)
Recompile the subset of
sources impacted by the
changes defined in changes and collect the new APIs. |
void |
compile(java.io.File[] sources,
DependencyChanges changes,
java.lang.String[] options,
Output output,
AnalysisCallback callback,
Reporter reporter,
GlobalsCache cache,
xsbti.Logger log,
java.util.Optional<CompileProgress> progressOpt)
Recompile the subset of
sources impacted by the
changes defined in changes and collect the new APIs. |
ScalaInstance |
scalaInstance()
Return the
ScalaInstance used by this instance of the compiler. |
ScalaInstance scalaInstance()
ScalaInstance used by this instance of the compiler.ClasspathOptions classpathOptions()
ClasspathOptions used by this instance of the compiler.void compile(java.io.File[] sources,
DependencyChanges changes,
AnalysisCallback callback,
xsbti.Logger log,
Reporter reporter,
CompileProgress progress,
CachedCompiler compiler)
sources impacted by the
changes defined in changes and collect the new APIs.sources - All the sources of the project.changes - The changes that have been detected at the previous step.callback - The callback to which the extracted information should be
reported.log - The logger in which the Scala compiler will log info.reporter - The reporter to which errors and warnings should be
reported during compilation.progress - Where to report the file being currently compiled.compiler - The actual compiler that will perform the compilation step.void compile(java.io.File[] sources,
DependencyChanges changes,
java.lang.String[] options,
Output output,
AnalysisCallback callback,
Reporter reporter,
GlobalsCache cache,
xsbti.Logger log,
java.util.Optional<CompileProgress> progressOpt)
sources impacted by the
changes defined in changes and collect the new APIs.sources - All the sources of the project.changes - The changes that have been detected at the previous step.options - The arguments to give to the Scala compiler.
For more information, run `scalac -help`.output - The location where generated class files should be put.callback - The callback to which the extracted information should
be reported.reporter - The reporter to which errors and warnings should be
reported during compilation.cache - The cache from where we retrieve the compiler to use.log - The logger in which the Scala compiler will log info.progressOpt - The progress interface in which the Scala compiler
will report on the file being compiled.