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
InterpreterInterface, AnyRef, Any
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(printer: Printer, storage: Storage, customPredefs: Seq[PredefInfo], extraBridges: (Interpreter) ⇒ Seq[(String, String, AnyRef)], wd: Path, verboseOutput: Boolean = true)

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val beforeExitHooks: Buffer[(Any) ⇒ Any]

  8. val bridgePredefs: Seq[PredefInfo]

  9. val bridges: Seq[(String, String, AnyRef)]

  10. def cachedCompileBlock(processed: Output, printer: Printer, blockInfo: CodeSource, printCode: String): Res[(Class[_], Imports, String)]

  11. def clone(): AnyRef

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

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

  14. var compiler: Compiler

  15. val dynamicClasspath: VirtualDirectory

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

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

    Definition Classes
    AnyRef → Any
  18. val eval: Evaluator

  19. def evalCachedClassFiles(source: Option[Path], cachedData: Seq[ClassFiles], dynamicClasspath: VirtualDirectory, classFilesList: Seq[BlockMetadata]): Res[Seq[_]]

  20. def evalClassloader: SpecialClassLoader

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

  22. def finalize(): Unit

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

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

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

  26. def handlePluginClasspath(jar: File): Unit

  27. def hashCode(): Int

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

  29. def init(): Unit

  30. lazy val interpApi: InterpAPI

  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. var lastException: Throwable

  33. def loadIvy(coordinates: Dependency*): Either[String, Set[File]]

    Definition Classes
    Interpreter → InterpreterInterface
  34. val mainThread: Thread

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

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

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

    Definition Classes
    AnyRef
  38. val onCompilerInit: Buffer[(Global) ⇒ Unit]

  39. var predefImports: Imports

  40. val predefs: Seq[PredefInfo]

  41. var pressy: Pressy

  42. val printer: Printer

  43. def processCorrectScript(blocks: Seq[(String, Seq[String])], startingImports: Imports, blockInfo: CodeSource, evaluate: (Output, Name) ⇒ Res[Evaluated], autoImport: Boolean, extraCode: String): Res[Metadata]

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

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

  46. def processModule(code: String, blockInfo: CodeSource, autoImport: Boolean, extraCode: String, hardcoded: Boolean): Res[Metadata]

  47. def processModule0(code: String, blockInfo: CodeSource, startingImports: Imports, autoImport: Boolean, extraCode: String): Res[Metadata]

  48. def processScriptBlock(processed: Output, printer: Printer, blockInfo: CodeSource): Res[Evaluated]

  49. def reInit(): Unit

  50. def resolveImportHooks(source: Option[Path], stmts: Seq[String]): Res[(Imports, Seq[String], Seq[ImportTree])]

  51. def resolveSingleImportHook(source: Option[Path], tree: ImportTree): Res[Seq[Imports]]

  52. val storage: Storage

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

    Definition Classes
    AnyRef
  54. def toString(): String

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

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

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

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

    Definition Classes
    Interpreter → InterpreterInterface
  59. def withContextClassloader[T](t: ⇒ T): T

Inherited from InterpreterInterface

Inherited from AnyRef

Inherited from Any

Ungrouped