public interface ScalaCompiler
| Modifier and Type | Method and Description |
|---|---|
void |
compile(java.io.File[] sources,
DependencyChanges changes,
AnalysisCallback callback,
xsbti.Logger log,
Reporter reporter,
CompileProgress progress,
CachedCompiler compiler)
Deprecated.
Use
compile(File[], DependencyChanges, String[], Output, AnalysisCallback, Reporter, GlobalsCache, Logger, Optional, IRStore) instead,
which specifies the IR store to be used for compilation. |
void |
compile(java.io.File[] sources,
DependencyChanges changes,
AnalysisCallback callback,
xsbti.Logger log,
Reporter reporter,
CompileProgress progress,
IRStore store,
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)
Deprecated.
Use
compile(File[], DependencyChanges, String[], Output, AnalysisCallback, Reporter, GlobalsCache, Logger, Optional, IRStore) instead,
which specifies the IR store to be used for compilation. |
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,
IRStore store)
Recompile the subset of
sources impacted by the
changes defined in changes and collect the new APIs. |
void |
resetGlobalIRCaches(IRStore store,
CachedCompiler cached,
xsbti.Logger log)
Reset the global IR caches that are persisted across different
runs.
|
ScalaInstance |
scalaInstance()
Return the
ScalaInstance used by this instance of the compiler. |
ScalaInstance scalaInstance()
ScalaInstance used by this instance of the compiler.@Deprecated
void compile(java.io.File[] sources,
DependencyChanges changes,
AnalysisCallback callback,
xsbti.Logger log,
Reporter reporter,
CompileProgress progress,
CachedCompiler compiler)
compile(File[], DependencyChanges, String[], Output, AnalysisCallback, Reporter, GlobalsCache, Logger, Optional, IRStore) instead,
which specifies the IR store to be used for compilation.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,
AnalysisCallback callback,
xsbti.Logger log,
Reporter reporter,
CompileProgress progress,
IRStore store,
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.@Deprecated
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)
compile(File[], DependencyChanges, String[], Output, AnalysisCallback, Reporter, GlobalsCache, Logger, Optional, IRStore) instead,
which specifies the IR store to be used for compilation.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.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,
IRStore store)
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.store - The store that contains the IR files to populate the symbol table
under build pipelining.void resetGlobalIRCaches(IRStore store, CachedCompiler cached, xsbti.Logger log)
store - The IR store that contains the IRs whose state we want to reset.cached - The cached compiler that enables us to call the reset method.log - A logger for reporting issues when resetting the state.