final class AnalyzingCompiler extends CachedCompilerProvider with ScalaCompiler
Implement a cached incremental ScalaCompiler that has been instrumented with the dependency analysis plugin to do incremental compilation.
- Alphabetic
- By Inheritance
- AnalyzingCompiler
- ScalaCompiler
- CachedCompilerProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AnalyzingCompiler(scalaInstance: xsbti.compile.ScalaInstance, provider: CompilerBridgeProvider, classpathOptions: ClasspathOptions, onArgsHandler: (Seq[String]) ⇒ Unit, classLoaderCache: Option[ClassLoaderCache])
- scalaInstance
The Scala instance to be used for the compiler.
- provider
The manager and provider of cached compilers.
- classpathOptions
The classpath options for the Scala compiler.
- onArgsHandler
Handler that will handle arguments.
Abstract Value Members
-
abstract
def
compile(sources: Array[File], changes: DependencyChanges, options: Array[String], output: xsbti.compile.Output, callback: xsbti.AnalysisCallback, reporter: Reporter, cache: GlobalsCache, log: Logger, progressOpt: Optional[CompileProgress]): Unit
Recompile the subset of
sources
impacted by the changes defined inchanges
and collect the new APIs.Recompile the subset of
sources
impacted by the changes defined inchanges
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.
- Definition Classes
- ScalaCompiler
-
abstract
def
compile(sources: Array[File], changes: DependencyChanges, callback: xsbti.AnalysisCallback, log: Logger, reporter: Reporter, progress: CompileProgress, compiler: CachedCompiler): Unit
Recompile the subset of
sources
impacted by the changes defined inchanges
and collect the new APIs.Recompile the subset of
sources
impacted by the changes defined inchanges
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.
- Definition Classes
- ScalaCompiler
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(sources: Array[File], changes: DependencyChanges, classpath: Array[File], singleOutput: File, options: Array[String], callback: AnalysisCallback, maximumErrors: Int, cache: GlobalsCache, log: ManagedLogger): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val classLoaderCache: Option[ClassLoaderCache]
-
val
classpathOptions: ClasspathOptions
Return the
ClasspathOptions
used by this instance of the compiler.Return the
ClasspathOptions
used by this instance of the compiler.- Definition Classes
- AnalyzingCompiler → ScalaCompiler
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def compile(sources: Array[File], changes: DependencyChanges, callback: AnalysisCallback, log: Logger, reporter: Reporter, progress: CompileProgress, compiler: CachedCompiler): Unit
- def compile(sources: Array[File], changes: DependencyChanges, options: Array[String], output: xsbti.compile.Output, callback: AnalysisCallback, reporter: Reporter, cache: GlobalsCache, log: Logger, progressOpt: Optional[CompileProgress]): Unit
- def console(classpath: Seq[File], options: Seq[String], initialCommands: String, cleanupCommands: String, log: Logger)(loader: Option[ClassLoader] = None, bindings: Seq[(String, Any)] = Nil): Unit
- def consoleCommandArguments(classpath: Seq[File], options: Seq[String], log: Logger): Seq[String]
-
def
createDualLoader(scalaLoader: ClassLoader, sbtLoader: ClassLoader): ClassLoader
- Attributes
- protected
- def doc(sources: Seq[File], classpath: Seq[File], outputDirectory: File, options: Seq[String], log: Logger, reporter: Reporter): Unit
- def doc(sources: Seq[File], classpath: Seq[File], outputDirectory: File, options: Seq[String], maximumErrors: Int, log: ManagedLogger): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def force(log: Logger): Unit
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newCachedCompiler(arguments: Seq[String], output: xsbti.compile.Output, log: Logger, reporter: Reporter): CachedCompiler
-
def
newCachedCompiler(arguments: Array[String], output: xsbti.compile.Output, log: Logger, reporter: Reporter): CachedCompiler
Return a new cached compiler from the usual compiler input.
Return a new cached compiler from the usual compiler input.
- Definition Classes
- AnalyzingCompiler → CachedCompilerProvider
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def onArgs(f: (Seq[String]) ⇒ Unit): AnalyzingCompiler
- val provider: CompilerBridgeProvider
-
val
scalaInstance: xsbti.compile.ScalaInstance
Return the
ScalaInstance
used by this instance of the compiler.Return the
ScalaInstance
used by this instance of the compiler.- Definition Classes
- AnalyzingCompiler → ScalaCompiler → CachedCompilerProvider
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnalyzingCompiler → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withClassLoaderCache(classLoaderCache: ClassLoaderCache): AnalyzingCompiler