dotty.tools.dotc.repl

InterpreterLoop

Related Doc: package repl

class InterpreterLoop extends AnyRef

The interactive shell. It provides a read-eval-print loop around the Interpreter class. After instantiation, clients should call the run method.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InterpreterLoop
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InterpreterLoop(compiler: Compiler, config: Config)(implicit ctx: Context)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def addReplay(cmd: String): Unit

    Record a command for replay should the user request a :replay

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def closeInterpreter()(implicit ctx: Context): Unit

    Close the interpreter

  8. def command(line: String): (Boolean, Option[String])

    Run one command submitted by the user.

    Run one command submitted by the user. Three values are returned: (1) whether to keep running, (2) the line to record for replay, if any.

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

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

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. def interpretAllFrom(filename: String): Unit

    interpret all lines from a specified file

  15. def interpretStartingWith(code: String): Option[String]

    Interpret expressions starting with the first line.

    Interpret expressions starting with the first line. Read lines until a complete compilation unit is available or until a syntax error has been seen. If a full unit is read, go ahead and interpret it. Return the full string to be recorded for replay, if any.

  16. val interpreter: Interpreter

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. val originalClassLoader: ClassLoader

    The context class loader at the time this object was created

    The context class loader at the time this object was created

    Attributes
    protected
  22. def printHelp(): Unit

    print a friendly help message

  23. def printWelcome(): Unit

    Print a welcome message

  24. final def repl(line: String = in.readLine(prompt)): Unit

    The main read-eval-print loop for the interpreter.

    The main read-eval-print loop for the interpreter. It calls command() for each line of input.

    Annotations
    @tailrec()
  25. def replay(): Unit

    create a new interpreter and replay all commands so far

  26. def replayCommands: List[String]

    A list of commands to replay if the user requests a :replay

  27. var replayCommandsRev: List[String]

    A reverse list of commands to replay if the user requests a :replay

  28. def run(): Reporter

  29. def silentlyBind(values: Array[(String, Any)]): Unit

  30. def silentlyRun(cmds: List[String]): Unit

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. val version: String

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped