org.pantsbuild.zinc

Compiler

object Compiler

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Compiler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val CompilerInterfaceId: String

  7. val JavaClassVersion: String

  8. val analysisCache: com.google.common.cache.Cache[FileFPrint, Option[(Analysis, CompileSetup)]]

    Static cache for compile analyses.

    Static cache for compile analyses. Values must be Options because in get() we don't yet know if, on a cache miss, the underlying file will yield a valid Analysis.

  9. def analysisIsEmpty(cacheFile: File): Boolean

    Check whether an analysis is empty.

  10. def analysisOptionFor(cacheFile: File): Option[Analysis]

    Analysis for the given file if it is already cached.

  11. def apply(setup: Setup, log: Logger): Compiler

    Get or create a zinc compiler based on compiler setup.

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def cachedAnalysisStore(cacheFile: File): AnalysisStore

    Create an analysis store backed by analysisCache.

    Create an analysis store backed by analysisCache.

    TODO: for all but the "output" analysis, the synchronization is overkill; everything upstream is immutable

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. val compilerCache: com.google.common.cache.Cache[Setup, Compiler]

    Static cache for zinc compilers.

  16. def compilerInterface(setup: Setup, scalaInstance: ScalaInstance, log: Logger): File

    Get the compiler interface for this compiler setup.

    Get the compiler interface for this compiler setup. Compile it if not already cached.

  17. def create(setup: Setup, log: Logger): Compiler

    Create a new zinc compiler based on compiler setup.

  18. def createResidentCache(maxCompilers: Int): GlobalsCache

    Create new globals cache.

  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getOrCreate(setup: Setup, log: Logger): Compiler

    Java API for creating compiler.

  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. def interfaceId(scalaVersion: String): String

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def newJavaCompiler(instance: ScalaInstance, javaHome: Option[File], fork: Boolean): JavaCompiler

    Create a new java compiler.

  29. def newScalaCompiler(instance: ScalaInstance, interfaceJar: File): AnalyzingCompiler

    Create a new scala compiler.

  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. val residentCache: GlobalsCache

    Static cache for resident scala compilers.

  33. def scalaInstance(setup: Setup): ScalaInstance

    Create the scala instance for the compiler.

    Create the scala instance for the compiler. Includes creating the classloader.

  34. def scalaLoader(jars: Seq[File]): URLClassLoader

    Create a new classloader with the root loader as parent (to avoid zinc itself being included).

  35. def scalaVersion(scalaLoader: ClassLoader): Option[String]

    Get the actual scala version from the compiler.

    Get the actual scala version from the compiler.properties in a classloader. The classloader should only contain one version of scala.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped