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[(Name, String)], extraBridges: (Interpreter) ⇒ Seq[(String, String, AnyRef)], wd: Path, verboseOutput: Boolean = true, eval: Evaluator = Interpreter.defaultEvaluator)

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. def addProfile(profile: String): Unit

    Definition Classes
    Interpreter → InterpreterInterface
  7. def addRepository(repository: String): Unit

    Definition Classes
    Interpreter → InterpreterInterface
  8. def addedDependencies(plugin: Boolean): Seq[(String, String, String)]

    Definition Classes
    Interpreter → InterpreterInterface
  9. var addedDependencies0: ListBuffer[(String, String, String)]

  10. def addedJars(plugin: Boolean): HashSet[File]

  11. var addedJars0: HashSet[File]

  12. var addedPluginDependencies: ListBuffer[(String, String, String)]

  13. var addedPluginJars: HashSet[File]

  14. final def asInstanceOf[T0]: T0

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

  16. val bridgePredefs: Seq[(Name, String)]

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

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

  19. def clone(): AnyRef

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

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

  22. var compiler: Compiler

  23. lazy val depThing: DependencyThing

  24. var dependencyExclusions: ListBuffer[(String, String)]

  25. val dynamicClasspath: VirtualDirectory

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

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

    Definition Classes
    AnyRef → Any
  28. val eval: Evaluator

  29. def evalClassloader: SpecialClassLoader

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

  31. def exclude(coordinates: (String, String)): Unit

    Definition Classes
    Interpreter → InterpreterInterface
  32. def exclusions(plugin: Boolean): Seq[(String, String)]

    Definition Classes
    Interpreter → InterpreterInterface
  33. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  35. def handleEvalClasspath(jars: Seq[File], coords: Seq[(String, String, String)]): Seq[File]

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

  37. def handlePluginClasspath(jars: Seq[File], coords: Seq[(String, String, String)]): Seq[File]

  38. def hashCode(): Int

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

  40. def init(): Unit

  41. def initialSettings: Settings

  42. def interpApi: InterpAPI

  43. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  44. var lastException: Throwable

  45. def loadIvy(coordinates: (String, String, String), previousCoordinates: Seq[(String, String, String)], exclusions: Seq[(String, String)], verbose: Boolean = true): Set[File]

    Definition Classes
    Interpreter → InterpreterInterface
  46. val mainThread: Thread

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

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

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

    Definition Classes
    AnyRef
  50. def onExit(cb: (Any) ⇒ Unit): Unit

  51. var onExitCallbacks: Seq[(Any) ⇒ Unit]

  52. var predefImports: Imports

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

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

  55. var pressy: Pressy

  56. def printBridge: String

  57. val printer: Printer

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

  59. def processExec(code: String, silent: Boolean): Res[Imports]

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

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

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

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

  64. def profiles: Set[String]

    Definition Classes
    Interpreter → InterpreterInterface
  65. var profiles0: HashSet[String]

  66. def reInit(): Unit

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

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

  69. val storage: Storage

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

    Definition Classes
    AnyRef
  71. def toString(): String

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

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

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

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

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

Inherited from InterpreterInterface

Inherited from AnyRef

Inherited from Any

Ungrouped