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, 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[PredefInfo]

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

  18. def cachedCompileBlock(processed: Output, printer: Printer, blockInfo: CodeSource, 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 evalCachedClassFiles(source: Option[Path], cachedData: Seq[ClassFiles], dynamicClasspath: VirtualDirectory, classFilesList: Seq[BlockMetadata]): Res[Seq[_]]

  30. def evalClassloader: SpecialClassLoader

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

  32. def exclude(coordinates: (String, String)*): Unit

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

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

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

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

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

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

  39. def hashCode(): Int

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

  41. def init(): Unit

  42. def initialSettings: Settings

  43. def interpApi: InterpAPI

  44. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  45. var lastException: Throwable

  46. def loadIvy(coordinates: Seq[(String, String, String)], previousCoordinates: Seq[(String, String, String)], exclusions: Seq[(String, String)]): Set[File]

    Definition Classes
    Interpreter → InterpreterInterface
  47. val mainThread: Thread

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

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

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

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

  52. def onExit(cb: (Any) ⇒ Unit): Unit

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

  54. var predefImports: Imports

  55. val predefs: Seq[PredefInfo]

  56. var pressy: Pressy

  57. def printBridge: String

  58. val printer: Printer

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

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

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

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

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

  64. def profiles: Set[String]

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

  66. def reInit(): Unit

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

  68. def resolveSingleImportHook(source: Option[Path], 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