All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ammonite.compiler.iface.CompilerBuilder.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0-M0-67-83057fea
Show newest version
package ammonite.compiler.iface

import java.net.URL
import java.nio.file.Path

import ammonite.util.Frame

abstract class CompilerBuilder {

  def newManager(
    rtCacheDir: Option[Path],
    headFrame: => Frame,
    dependencyCompleter: => Option[String => (Int, Seq[String])],
    whiteList: Set[Seq[String]],
    initialClassLoader: ClassLoader
  ): CompilerLifecycleManager

  def create(
    initialClassPath: Seq[URL],
    classPath: Seq[URL],
    dynamicClassPath: Seq[(String, Array[Byte])],
    evalClassLoader: ClassLoader,
    pluginClassLoader: ClassLoader,
    reporter: Option[CompilerBuilder.Message => Unit],
    settings: Seq[String],
    classPathWhiteList: Set[Seq[String]],
    lineNumberModifier: Boolean
  ): Compiler

  def scalaVersion: String
}

object CompilerBuilder {

  case class Message(
    severity: String,
    start: Int,
    end: Int,
    message: String
  )

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy