scala.tools.nsc

InterpreterLoop

class InterpreterLoop extends ILoop

A compatibility stub.

Annotations
@deprecated
Deprecated

(Since version 2.9.0) Use a class in the scala.tools.nsc.interpreter package.

Source
InterpreterLoop.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. InterpreterLoop
  2. ILoop
  3. ILoopInit
  4. LoopCommands
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InterpreterLoop()

  2. new InterpreterLoop(in0: BufferedReader, out: PrintWriter)

  3. new InterpreterLoop(in0: Option[BufferedReader], out: PrintWriter)

Type Members

  1. class ILoopInterpreter extends IMain

  2. class LineCmd extends LoopCommand

  3. abstract class LoopCommand extends (String) ⇒ Result

  4. class NullaryCmd extends LoopCommand

  5. case class Result(keepRunning: Boolean, lineToRecord: Option[String]) extends Product with Serializable

  6. class VarArgsCmd extends LoopCommand

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. object LoopCommand extends AnyRef

  7. lazy val NoType: NoType

    Definition Classes
    ILoop
  8. object Result extends Serializable

  9. def addClasspath(arg: String): Unit

    Definition Classes
    ILoop
  10. def addReplay(cmd: String): Unit

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

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

    Definition Classes
    ILoop
  11. def addThunk(body: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  12. var addedClasspath: String

    Definition Classes
    ILoop
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def asyncEcho(async: Boolean, msg: ⇒ String): Unit

    Definition Classes
    ILoop
  15. def asyncMessage(msg: String): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  16. def awaitInitialized(): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  17. def chooseReader(settings: Settings): InteractiveReader

    Tries to create a JLineReader, falling back to SimpleReader: unless settings or properties are such that it should start with SimpleReader.

    Tries to create a JLineReader, falling back to SimpleReader: unless settings or properties are such that it should start with SimpleReader.

    Definition Classes
    ILoop
  18. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def closeInterpreter(): Unit

    Close the interpreter and set the var to null.

    Close the interpreter and set the var to null.

    Definition Classes
    ILoop
  20. def command(line: String): Result

    Run one command submitted by the user.

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

    Definition Classes
    ILoop
  21. def commands: List[LoopCommand]

    Available commands

    Available commands

    Definition Classes
    ILoop
  22. def createAsyncListener(): Future[Unit]

    Attributes
    protected
    Definition Classes
    ILoopInit
  23. def createInterpreter(): Unit

    Create a new interpreter.

    Create a new interpreter.

    Definition Classes
    ILoop
  24. def echo(msg: String): Unit

    Attributes
    protected
    Definition Classes
    ILoop
  25. def echoAndRefresh(msg: String): Unit

    Attributes
    protected
    Definition Classes
    ILoop
  26. def echoCommandMessage(msg: String): Unit

    Definition Classes
    ILoopLoopCommands
  27. def echoNoNL(msg: String): Unit

    Attributes
    protected
    Definition Classes
    ILoop
  28. def enablePowerMode(isDuringInit: Boolean): Unit

    Definition Classes
    ILoop
  29. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  34. def helpCommand(line: String): Result

    print a friendly help message

    print a friendly help message

    Definition Classes
    ILoop
  35. def history: History

    Definition Classes
    ILoop
  36. lazy val historyCommand: LoopCommand { def defaultLines: Int }

    Show the history

    Show the history

    Definition Classes
    ILoop
  37. var in: InteractiveReader

    Definition Classes
    ILoop
  38. def initializedCallback(): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  39. def installSigIntHandler(): Unit

    Try to install sigint handler: ignore failure.

    Try to install sigint handler: ignore failure. Signal handler will interrupt current line execution if any is in progress.

    Attempting to protect the repl from accidental exit, we only honor a single ctrl-C if the current buffer is empty: otherwise we look for a second one within a short time.

    Attributes
    protected
    Definition Classes
    ILoopInit
  40. def interpretAllFrom(file: File): Unit

    interpret all lines from a specified file

    interpret all lines from a specified file

    Definition Classes
    ILoop
  41. 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.

    Definition Classes
    ILoop
  42. var intp: IMain

    Definition Classes
    ILoop
  43. def isAsync: Boolean

    Definition Classes
    ILoop
  44. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  45. def loadCommand(arg: String): Result

    Definition Classes
    ILoop
  46. def loadFiles(settings: Settings): Unit

    Definition Classes
    ILoop
  47. def loop(): Unit

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

    The main read-eval-print loop for the repl. It calls command() for each line of input, and stops when command() returns false.

    Definition Classes
    ILoop
  48. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  49. def newJavap(): JavapClass

    Attributes
    protected
    Definition Classes
    ILoop
  50. final def notify(): Unit

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

    Definition Classes
    AnyRef
  52. 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
    Definition Classes
    ILoop
  53. def pasteCommand(): Result

    Definition Classes
    ILoop
  54. def postInitThunks: List[() ⇒ Unit]

    Attributes
    protected
    Definition Classes
    ILoopInit
  55. def postInitialization(): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  56. lazy val power: Power[StdReplVals]

    Definition Classes
    ILoop
  57. def powerCmd(): Result

    Definition Classes
    ILoop
  58. lazy val powerCommands: List[LoopCommand]

    Power user commands

    Power user commands

    Definition Classes
    ILoop
  59. def printWelcome(): Unit

    Print a welcome message

    Print a welcome message

    Definition Classes
    ILoopInit
  60. def process(args: Array[String]): Boolean

    process command-line arguments and do as they request

    process command-line arguments and do as they request

    Definition Classes
    ILoop
  61. def process(settings: Settings): Boolean

    Definition Classes
    ILoop
  62. def prompt: String

    Prompt to print when awaiting input

    Prompt to print when awaiting input

    Definition Classes
    ILoop
  63. def removeSigIntHandler(): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  64. def replay(): Unit

    create a new interpreter and replay the given commands

    create a new interpreter and replay the given commands

    Definition Classes
    ILoop
  65. var replayCommandStack: List[String]

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

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

    Definition Classes
    ILoop
  66. def replayCommands: List[String]

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

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

    Definition Classes
    ILoop
  67. val replayQuestionMessage: String

    Definition Classes
    ILoop
  68. def reset(): Unit

    Definition Classes
    ILoop
  69. def resetCommand(): Unit

    Definition Classes
    ILoop
  70. def runThunks(): Unit

    Attributes
    protected
    Definition Classes
    ILoopInit
  71. def savingReader[T](body: ⇒ T): T

    Definition Classes
    ILoop
  72. def savingReplayStack[T](body: ⇒ T): T

    Definition Classes
    ILoop
  73. def searchHistory(_cmdline: String): Unit

    Search the history

    Search the history

    Definition Classes
    ILoop
  74. def setPrompt(prompt: String): Unit

    Definition Classes
    ILoop
  75. var settings: Settings

    Definition Classes
    ILoop
  76. lazy val shCommand: LoopCommand

    fork a shell and run a command

    fork a shell and run a command

    Definition Classes
    ILoop
  77. lazy val standardCommands: List[LoopCommand]

    Standard commands *

    Standard commands *

    Definition Classes
    ILoop
  78. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  79. def toString(): String

    Definition Classes
    AnyRef → Any
  80. def verbosity(): Unit

    Definition Classes
    ILoop
  81. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  84. def withFile(filename: String)(action: (File) ⇒ Unit): Unit

    Definition Classes
    ILoop

Deprecated Value Members

  1. def interpreter: IMain

    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use intp instead.

  2. def interpreter_=(i: Interpreter): Unit

    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use intp instead.

  3. def main(settings: Settings): Unit

    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use process instead

  4. def main(args: Array[String]): Unit

    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use process instead

Inherited from ILoop

Inherited from ILoopInit

Inherited from LoopCommands

Inherited from AnyRef

Inherited from Any