BaseIvy

ammonite.runtime.ImportHook.BaseIvy
class BaseIvy(plugin: Boolean) extends ImportHook

Attributes

Graph
Supertypes
trait ImportHook
class Object
trait Matchable
class Any
Known subtypes
object Ivy
object PluginIvy

Members list

Value members

Concrete methods

def handle(source: CodeSource, tree: ImportTree, interp: InterpreterInterface, wrapperPath: Seq[Name]): Either[String, Seq[ClassPath]]

Handle a parsed import that this import hook was registered to be interested in

Handle a parsed import that this import hook was registered to be interested in

Note that source is optional; not every piece of code has a source. Most user code does, e.g. a repl session is based in their CWD, a script has a path, but some things like hardcoded builtin predefs don't

Attributes

def resolve(interp: InterpreterInterface, signatures: Seq[String]): Either[String, (Seq[Dependency], Seq[File])]
def splitImportTree(tree: ImportTree): Either[String, Seq[String]]