scala.tools.nsc.interpreter

SparkILoop

class SparkILoop extends LoopCommands

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

If no in0 is specified, then input will come from the console, and the class will attempt to provide input editing feature such as input history.

Version

1.2

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

Instance Constructors

  1. new SparkILoop()

  2. new SparkILoop(in0: BufferedReader, out: JPrintWriter)

  3. new SparkILoop(in0: Option[BufferedReader], out: JPrintWriter)

Type Members

  1. class LineCmd extends LoopCommand

    Definition Classes
    LoopCommands
  2. abstract class LoopCommand extends (String) ⇒ Result

    Definition Classes
    LoopCommands
  3. class NullaryCmd extends LoopCommand

    Definition Classes
    LoopCommands
  4. case class Result extends Product with Serializable

    Definition Classes
    LoopCommands
  5. class SparkILoopInterpreter extends SparkIMain

  6. class VarArgsCmd extends 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. object LoopCommand

    Definition Classes
    LoopCommands
  5. object Result extends Serializable

    Definition Classes
    LoopCommands
  6. def addClasspath(arg: String): Unit

  7. def addReplay(cmd: String): Unit

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

  8. var addedClasspath: String

  9. final def asInstanceOf[T0]: T0

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

  11. def asyncMessage(msg: String): Unit

    Attributes
    protected
  12. 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.

  13. def clone(): AnyRef

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

    Close the interpreter and set the var to null.

  15. 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.

  16. def commands: List[LoopCommand]

    Available commands

  17. def createInterpreter(): Unit

    Create a new interpreter.

  18. def echo(msg: String): Unit

    Attributes
    protected
  19. def echoAndRefresh(msg: String): Unit

    Attributes
    protected
  20. def echoCommandMessage(msg: String): Unit

    Definition Classes
    SparkILoop → LoopCommands
  21. def editCommand(what: String, editor: Option[String]): Result

  22. def editCommand(what: String): Result

  23. def enablePowerMode(isDuringInit: Boolean): Unit

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

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

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

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

    Definition Classes
    AnyRef → Any
  28. var globalFuture: Future[Boolean]

  29. def hashCode(): Int

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

    print a friendly help message

  31. def history: History

  32. lazy val historyCommand: LoopCommand { def defaultLines: Int }

    Show the history

  33. var in: InteractiveReader

  34. def initializeSpark(): Unit

  35. def interpretAllFrom(file: File): Unit

    interpret all lines from a specified file

  36. 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.

  37. var intp: SparkIMain

  38. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  39. def lineCommand(what: String): Result

  40. def loadCommand(arg: String): Result

  41. def loadFiles(settings: Settings): Unit

  42. final 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.

    Annotations
    @tailrec()
  43. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  46. val out: JPrintWriter

    Attributes
    protected
    Definition Classes
    SparkILoop → LoopCommands
  47. def pasteCommand(arg: String): Result

  48. def powerCmd(): Result

  49. def printWelcome(): Unit

    Print a welcome message

  50. def process(settings: Settings): Boolean

  51. def processLine(line: String): Boolean

  52. def prompt: String

    Prompt to print when awaiting input

  53. def replay(): Unit

    create a new interpreter and replay the given commands

  54. var replayCommandStack: List[String]

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

  55. def replayCommands: collection.immutable.List[String]

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

  56. val replayQuestionMessage: String

  57. def reset(): Unit

  58. def resetCommand(): Unit

  59. def saveCommand(filename: String): Result

  60. def savingReader[T](body: ⇒ T): T

  61. def savingReplayStack[T](body: ⇒ T): T

  62. def searchHistory(_cmdline: String): Unit

    Search the history

  63. var settings: Settings

  64. lazy val shCommand: LoopCommand

    fork a shell and run a command

  65. lazy val standardCommands: collection.immutable.List[LoopCommand]

    Standard commands *

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

    Definition Classes
    AnyRef
  67. def tagOfStaticClass[T](implicit arg0: ClassTag[T]): reflect.api.JavaUniverse.TypeTag[T]

    Attributes
    protected
  68. def toString(): String

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

  70. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. def withFile[A](filename: String)(action: (File) ⇒ A): Option[A]

Deprecated Value Members

  1. def main(settings: Settings): Unit

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use process instead

Inherited from LoopCommands

Inherited from AnyRef

Inherited from Any

Ungrouped