ammonite.interp

Interpreter

class Interpreter extends InterpreterInterface

A convenient bundle of all the functionality necessary to interpret Scala code. Doesn't attempt to provide any real encapsulation for now.

Self Type
Interpreter
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Interpreter
  2. InterpreterInterface
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Interpreter(prompt0: Ref[String], frontEnd0: Ref[FrontEnd], width: ⇒ Int, height: ⇒ Int, colors0: Ref[Colors], printer: Printer, storage: Storage, history: ⇒ History, predef: String, wd: Path, replArgs: Seq[Bind[_]])

Type Members

  1. abstract class DefaultLoadJar extends LoadJar

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 argString: String

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val bridgeCls: Class[_]

  9. def cachedCompileBlock(processed: Output, printer: Printer, wrapperName: Name, fileName: String, pkgName: Seq[Name], printCode: String): Res[(Class[_], Imports, String)]

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compilationCount: Int

  12. def compileClass(processed: Output, printer: Printer, fileName: String): Res[(ClassFiles, Imports)]

  13. var compiler: Compiler

  14. val dynamicClasspath: VirtualDirectory

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

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

    Definition Classes
    AnyRef → Any
  17. val eval: Evaluator

  18. def evalClassloader: SpecialClassLoader

  19. def evaluateLine(processed: Output, printer: Printer, fileName: String, indexedWrapperName: Name): Res[Evaluated]

  20. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  22. def handleEvalClasspath(jar: File): Unit

  23. def handleOutput(res: Res[Evaluated]): Unit

  24. def handlePluginClasspath(jar: File): Unit

  25. val hardcodedPredef: String

  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. val importHooks: Ref[Map[Seq[String], ImportHook]] { ... /* 2 definitions in type refinement */ }

  28. def init(): Unit

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. var lastException: Throwable

  31. def loadIvy(coordinates: (String, String, String), verbose: Boolean = true): Set[File]

    Definition Classes
    InterpreterInterpreterInterface
  32. val mainThread: Thread

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

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

    Definition Classes
    AnyRef
  36. var predefImports: Imports

  37. val predefs: Seq[(String, Name)]

  38. def preprocessScript(source: Source, code: String): Res[(Seq[(String, Seq[String])], Imports, Seq[Seq[ImportTree]])]

  39. var pressy: Pressy

  40. def processCorrectScript(blocks: Seq[(String, Seq[String])], startingImports: Imports, pkgName: Seq[Name], wrapperName: Name, evaluate: (Output, Int, Name) ⇒ Res[Evaluated], autoImport: Boolean): Res[(Imports, Seq[(String, String)])]

  41. def processExec(code: String): Res[Imports]

  42. def processLine(code: String, stmts: Seq[String], fileName: String): Res[Evaluated]

  43. def processModule(source: Source, code: String, wrapperName: Name, pkgName: Seq[Name], autoImport: Boolean): Res[Imports]

  44. def processModule0(source: Source, code: String, wrapperName: Name, pkgName: Seq[Name], startingImports: Imports, autoImport: Boolean): Res[(Imports, Seq[(String, String)], Seq[ImportTree])]

  45. def processScriptBlock(processed: Output, printer: Printer, wrapperName: Name, fileName: String, pkgName: Seq[Name]): Res[Evaluated]

  46. def reInit(): Unit

  47. lazy val replApi: ReplAPI

  48. def resolveImportHooks(source: Source, stmts: Seq[String]): Res[(Imports, Seq[String], Seq[ImportTree])]

  49. def resolveSingleImportHook(source: Source, tree: ImportTree): Res[Seq[Imports]]

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

    Definition Classes
    AnyRef
  51. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. val wd: Path

    Definition Classes
    InterpreterInterpreterInterface
  56. def withContextClassloader[T](t: ⇒ T): T

Inherited from InterpreterInterface

Inherited from AnyRef

Inherited from Any

Ungrouped