Packages

c

scala.tools.nsc

InterpreterLoop

class InterpreterLoop extends ILoop

A compatibility stub for sbt.

Annotations
@deprecated
Deprecated

(Since version 2.9.0) Use scala.tools.nsc.interpreter.ILoop.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InterpreterLoop
  2. ILoop
  3. LoopCommands
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
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
    Definition Classes
    ILoop
  2. class ReplCompletion extends Completion
    Definition Classes
    ILoop
  3. class LineCmd extends (LoopCommands.this)#LoopCommand
    Definition Classes
    LoopCommands
  4. abstract class LoopCommand extends (String) ⇒ (LoopCommands.this)#Result
    Definition Classes
    LoopCommands
  5. class NullaryCmd extends (LoopCommands.this)#LoopCommand
    Definition Classes
    LoopCommands
  6. case class Result(keepRunning: Boolean, lineToRecord: Option[String]) extends Product with Serializable
    Definition Classes
    LoopCommands
  7. class VarArgsCmd extends (LoopCommands.this)#LoopCommand
    Definition Classes
    LoopCommands

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

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

    Definition Classes
    ILoop
  5. def ambiguousError(cmd: String): Result
    Definition Classes
    LoopCommands
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def asyncEcho(async: Boolean, msg: ⇒ String): Unit
    Definition Classes
    ILoop
  8. def asyncMessage(msg: String): Unit
    Attributes
    protected
    Definition Classes
    ILoop
  9. def chooseReader(settings: Settings): InteractiveReader

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

    Tries to create a jline.InteractiveReader, falling back to SimpleReader, unless settings or properties are such that it should start with SimpleReader. The constructor of the InteractiveReader must take a Completion strategy, supplied as a () => Completion; the Completion object provides a concrete Completer.

    Definition Classes
    ILoop
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def closeInterpreter(): Unit

    Close the interpreter and set the var to null.

    Close the interpreter and set the var to null.

    Definition Classes
    ILoop
  12. def colonCommand(line: String): Result
    Definition Classes
    LoopCommands
  13. def colonCompletion(line: String, cursor: Int): Completion
    Definition Classes
    LoopCommands
  14. 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
  15. def commands: List[LoopCommand]

    Available commands

    Available commands

    Definition Classes
    ILoopLoopCommands
  16. def completionsCommand(what: String): Result
    Definition Classes
    ILoop
  17. def createInterpreter(): Unit

    Create a new interpreter.

    Create a new interpreter.

    Definition Classes
    ILoop
  18. def echo(msg: String): Unit
    Attributes
    protected
    Definition Classes
    ILoop
  19. def echoAndRefresh(msg: String): Unit
    Attributes
    protected
    Definition Classes
    ILoop
  20. def echoCommandMessage(msg: String): Unit
    Definition Classes
    ILoopLoopCommands
  21. def editCommand(what: String, editor: Option[String]): Result
    Definition Classes
    ILoop
  22. def editCommand(what: String): Result
    Definition Classes
    ILoop
  23. def enablePowerMode(isDuringInit: Boolean): Unit
    Definition Classes
    ILoop
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. val fileCompletion: Completion
    Definition Classes
    ILoop
  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def helpCommand(line: String): Result

    print a friendly help message

    print a friendly help message

    Definition Classes
    LoopCommands
  31. def helpSummary(): Unit
    Definition Classes
    LoopCommands
  32. def history: History
    Definition Classes
    ILoop
  33. lazy val historyCommand: LoopCommand { def defaultLines: Int }

    Show the history

    Show the history

    Definition Classes
    ILoop
  34. var in: InteractiveReader
    Definition Classes
    ILoop
  35. def interpretAllFrom(file: File, verbose: Boolean = false): Unit

    interpret all lines from a specified file

    interpret all lines from a specified file

    Definition Classes
    ILoop
  36. final 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
  37. var intp: IMain
    Definition Classes
    ILoop
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. final val isSbt: Boolean(true)
    Attributes
    protected
    Definition Classes
    InterpreterLoopILoop
  40. def lineCommand(what: String): Result
    Definition Classes
    ILoop
  41. def loadCommand(arg: String): Result
    Definition Classes
    ILoop
  42. final def loop(line: String): LineResult
    Definition Classes
    ILoop
    Annotations
    @tailrec()
  43. final def loop(): LineResult

    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
  44. var mum: Boolean
    Attributes
    protected
    Definition Classes
    ILoop
  45. def mumly[A](op: ⇒ A): A
    Definition Classes
    ILoop
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. def newJavap(): JavapClass
    Attributes
    protected
    Definition Classes
    ILoop
  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. val out: JPrintWriter
    Attributes
    protected
    Definition Classes
    ILoopLoopCommands
  51. def pasteCommand(arg: String): Result
    Definition Classes
    ILoop
  52. lazy val power: Power[StdReplVals]
    Definition Classes
    ILoop
  53. def powerCmd(): Result
    Definition Classes
    ILoop
  54. lazy val powerCommands: List[LoopCommand]

    Power user commands

    Power user commands

    Definition Classes
    ILoop
  55. def printWelcome(): Unit

    Print a welcome message!

    Print a welcome message!

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

    Start an interpreter with the given settings.

    Start an interpreter with the given settings.

    returns

    true if successful

    Definition Classes
    ILoop
  57. def processLine(line: String): Boolean
    Definition Classes
    ILoop
  58. def prompt: String

    Prompt to print when awaiting input

    Prompt to print when awaiting input

    Definition Classes
    ILoop
  59. def replay(): Unit

    Announces as it replays.

    Announces as it replays.

    Definition Classes
    ILoop
  60. def replayCommand(line: String): Unit

    create a new interpreter and replay the given commands

    create a new interpreter and replay the given commands

    Definition Classes
    ILoop
  61. 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
  62. def replayCommands: collection.immutable.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
  63. val replayQuestionMessage: String
    Definition Classes
    ILoop
  64. def require(arg: String): Unit

    Adds jar file to the current classpath.

    Adds jar file to the current classpath. Jar will only be added if it does not contain classes that already exist on the current classpath.

    Importantly, require adds jars to the classpath without resetting the state of the interpreter. This is in contrast to replay which can be used to add jars to the classpath and which creates a new instance of the interpreter and replays all interpreter expressions.

    Definition Classes
    ILoop
  65. def reset(): Unit

    Resets without announcements.

    Resets without announcements.

    Definition Classes
    ILoop
  66. def resetCommand(line: String): Unit

    reset the interpreter in an attempt to start fresh.

    reset the interpreter in an attempt to start fresh. Supplying settings creates a new compiler.

    Definition Classes
    ILoop
  67. def saveCommand(filename: String): Result
    Definition Classes
    ILoop
  68. def savingReader[T](body: ⇒ T): T
    Definition Classes
    ILoop
  69. def savingReplayStack[T](body: ⇒ T): T
    Definition Classes
    ILoop
  70. def searchHistory(_cmdline: String): Unit

    Search the history

    Search the history

    Definition Classes
    ILoop
  71. var settings: Settings
    Definition Classes
    ILoop
  72. val settingsCompletion: Completion
    Definition Classes
    ILoop
  73. lazy val shCommand: LoopCommand

    fork a shell and run a command

    fork a shell and run a command

    Definition Classes
    ILoop
  74. lazy val standardCommands: collection.immutable.List[LoopCommand]

    Standard commands *

    Standard commands *

    Definition Classes
    ILoop
  75. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  76. def toString(): String
    Definition Classes
    AnyRef → Any
  77. def verbosity(): Unit
    Definition Classes
    ILoop
  78. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  81. def withFile[A](filename: String)(action: (File) ⇒ A): Option[A]
    Definition Classes
    ILoop
  82. object LineResults extends Enumeration
    Definition Classes
    ILoop
  83. object LoopCommand
    Definition Classes
    LoopCommands
  84. object Result extends Serializable
    Definition Classes
    LoopCommands

Deprecated Value Members

  1. def addClasspath(arg: String): Unit
    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use reset, replay or require to update class path

  2. var addedClasspath: String
    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use reset, replay or require to update class path

  3. def interpreter: IMain
    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) use intp instead.

  4. def interpreter_=(i: Interpreter): Unit
    Definition Classes
    ILoop
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) use intp instead.

  5. def main(settings: Settings): Unit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) use process instead

Inherited from ILoop

Inherited from LoopCommands

Inherited from AnyRef

Inherited from Any

Ungrouped