ammonite

interp

package interp

Visibility
  1. Public
  2. All

Type Members

  1. class AmmonitePlugin extends Plugin

    Used to capture the names in scope after every execution, reporting them to the output function.

    Used to capture the names in scope after every execution, reporting them to the output function. Needs to be a compiler plugin so we can hook in immediately after the typer

  2. trait Compiler extends AnyRef

    Encapsulates (almost) all the ickiness of Scalac so it doesn't leak into the rest of the codebase.

    Encapsulates (almost) all the ickiness of Scalac so it doesn't leak into the rest of the codebase. Makes use of a good amount of mutable state for things like the log-output-forwarder or compiler-plugin-output because These things are hard-coded into Scalac and can't be passed in from run to run.

    Turns source-strings into the bytes of classfiles, possibly more than one classfile per source-string (e.g. inner classes, or lambdas). Also lets you query source strings using an in-built presentation compiler

  3. class CompilerLifecycleManager extends AnyRef

    Wraps up the Compiler and Pressy, ensuring that they get properly initialized before use.

    Wraps up the Compiler and Pressy, ensuring that they get properly initialized before use. Mostly deals with ensuring the object lifecycles are properly dealt with; Compiler and Pressy are the ones which deal with the compiler's nasty APIs

    Exposes a simple API where you can just call methods like compilerClass configureCompiler any-how and not worry about ensuring the necessary compiler objects are initialized, or worry about initializing them more than necessary

  4. trait InterpAPI extends AnyRef

  5. trait InterpLoad extends LoadJar

  6. class Interpreter extends InterpreterInterface

    A convenient bundle of all the functionality necessary to interpret Scala code.

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

  7. trait LoadJar extends AnyRef

  8. trait Preprocessor extends AnyRef

    Responsible for all scala-source-code-munging that happens within the Ammonite REPL.

    Responsible for all scala-source-code-munging that happens within the Ammonite REPL.

    Performs several tasks:

    - Takes top-level Scala expressions and assigns them to res{1, 2, 3, ...} values so they can be accessed later in the REPL

    - Wraps the code snippet with an wrapper object since Scala doesn't allow top-level expressions

    - Mangles imports from our ammonite.util.ImportData data structure into a source String

    - Combines all of these into a complete compilation unit ready to feed into the Scala compiler

  9. trait Pressy extends AnyRef

    Nice wrapper for the presentation compiler.

Value Members

  1. object AmmonitePlugin

  2. object Compiler

  3. object CompilerCompatibility

  4. object GlobalInitCompat

  5. object InterpBridge extends APIHolder[InterpAPI]

  6. object Interpreter

  7. object LineNumberModifier

  8. object Parsers

  9. object PredefInitialization

    The logic around executing an Interpreter's predef during initialization

  10. object Preprocessor

  11. object Pressy

Ungrouped