ammonite.interp.Interpreter
See theInterpreter companion object
class Interpreter(val compilerBuilder: CompilerBuilder, parser: () => Parser, getFrame: () => Frame, val createFrame: () => Frame, replCodeWrapper: CodeWrapper, val scriptCodeWrapper: CodeWrapper, parameters: Parameters) extends InterpreterInterface
A convenient bundle of all the functionality necessary to interpret Scala code. Doesn't attempt to provide any real encapsulation for now.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait InterpreterInterfaceclass Objecttrait Matchableclass Any
- Self type
Members list
Type members
Classlikes
abstract class DefaultLoadJar extends LoadJar
Attributes
- Supertypes
-
trait LoadJarclass Objecttrait Matchableclass Any
Types
Value members
Concrete methods
def evaluateLine(processed: Output, fileName: String, indexedWrapperName: Name, silent: Boolean, incrementLine: () => Unit): Res[(Evaluated, Tag)]
def initializePredef(basePredefs: Seq[PredefInfo], customPredefs: Seq[PredefInfo], extraBridges: Seq[(String, String, AnyRef)], baseImports: Imports): Option[(Failing, Seq[(Watchable, Long)])]
def processAllScriptBlocks(blocks: Seq[BlockData], splittedScript: => Res[IndexedSeq[(String, Seq[String])]], startingImports: Imports, codeSource: CodeSource, evaluate: (Output, Name) => Res[(Evaluated, Tag)], autoImport: Boolean, extraCode: String): Res[Metadata]
def processLine(code: String, stmts: Seq[String], currentLine: Int, silent: Boolean, incrementLine: () => Unit): Res[Evaluated]
def processModule(code: String, codeSource: CodeSource, autoImport: Boolean, extraCode: String, hardcoded: Boolean, moduleCodeWrapper: CodeWrapper): Res[Metadata]
def processSingleBlock(processed: Output, codeSource0: CodeSource, indexedWrapperName: Name): Res[(Evaluated, Tag)]
def resolveImportHooks(importTrees: Seq[ImportTree], hookedStmts: Seq[String], source: CodeSource, wrapperPath: Seq[Name]): Res[ImportHookInfo]
def resolveSingleImportHook(source: CodeSource, tree: ImportTree, wrapperPath: Seq[Name]): Res[Seq[Imports]]
Concrete fields
In this article