Interpreter

ammonite.interp.Interpreter
See theInterpreter companion class
object Interpreter

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Parameters(printer: Printer, storage: Storage, wd: Path, colors: Ref[Colors], verboseOutput: Boolean, initialClassLoader: ClassLoader, importHooks: Map[Seq[String], ImportHook], alreadyLoadedDependencies: Seq[Dependency], classPathWhitelist: Set[Seq[String]], wrapperNamePrefix: String, warnings: Boolean)

Value parameters

wrapperNamePrefix

Name to be used as a prefix for source file and classes wrapping user code, that ends in compilation errors or stack traces in particular

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def cacheTag(classpathHash: Array[Byte]): String

This gives our cache tags for compile caching. The cache tags are a hash of classpath, previous commands (in-same-script), and the block-code. Previous commands are hashed in the wrapper names, which are contained in imports, so we don't need to pass them explicitly.

This gives our cache tags for compile caching. The cache tags are a hash of classpath, previous commands (in-same-script), and the block-code. Previous commands are hashed in the wrapper names, which are contained in imports, so we don't need to pass them explicitly.

Attributes

def indexWrapperName(wrapperName: Name, wrapperIndex: Int): Name
def initPrinters(colors0: Colors, output: OutputStream, error: OutputStream, verboseOutput: Boolean): (Ref[Colors], Printer)
def skipSheBangLine(code: String): String

Concrete fields

val SheBang: String
val SheBangEndPattern: Pattern
val predefImports: Imports