public interface ScalaCompiler
| Modifier and Type | Method and Description |
|---|---|
ClasspathOptions |
classpathOptions()
Return the
ClasspathOptions used by this instance of the compiler. |
void |
compile(VirtualFile[] sources,
VirtualFile[] classpath,
FileConverter converter,
DependencyChanges changes,
java.lang.String[] options,
Output output,
AnalysisCallback callback,
Reporter reporter,
java.util.Optional<CompileProgress> progressOpt,
xsbti.Logger log)
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(VirtualFile[] sources, VirtualFile[] classpath, FileConverter converter, DependencyChanges changes, java.lang.String[] options, Output output, AnalysisCallback callback, Reporter reporter, java.util.Optional<CompileProgress> progressOpt, xsbti.Logger log)
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.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.