class InterpreterLoop extends ILoop
A compatibility stub for sbt.
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) Use scala.tools.nsc.interpreter.ILoop.
- Alphabetic
- By Inheritance
- InterpreterLoop
- ILoop
- LoopCommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
class
ILoopInterpreter extends IMain
- Definition Classes
- ILoop
-
class
ReplCompletion extends Completion
- Definition Classes
- ILoop
-
class
LineCmd extends (LoopCommands.this)#LoopCommand
- Definition Classes
- LoopCommands
-
abstract
class
LoopCommand extends (String) ⇒ (LoopCommands.this)#Result
- Definition Classes
- LoopCommands
-
class
NullaryCmd extends (LoopCommands.this)#LoopCommand
- Definition Classes
- LoopCommands
-
case class
Result(keepRunning: Boolean, lineToRecord: Option[String]) extends Product with Serializable
- Definition Classes
- LoopCommands
-
class
VarArgsCmd extends (LoopCommands.this)#LoopCommand
- Definition Classes
- LoopCommands
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
def
ambiguousError(cmd: String): Result
- Definition Classes
- LoopCommands
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asyncEcho(async: Boolean, msg: ⇒ String): Unit
- Definition Classes
- ILoop
-
def
asyncMessage(msg: String): Unit
- Attributes
- protected
- Definition Classes
- ILoop
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
closeInterpreter(): Unit
Close the interpreter and set the var to null.
Close the interpreter and set the var to null.
- Definition Classes
- ILoop
-
def
colonCommand(line: String): Result
- Definition Classes
- LoopCommands
-
def
colonCompletion(line: String, cursor: Int): Completion
- Definition Classes
- LoopCommands
-
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
-
def
commands: List[LoopCommand]
Available commands
Available commands
- Definition Classes
- ILoop → LoopCommands
-
def
completionsCommand(what: String): Result
- Definition Classes
- ILoop
-
def
createInterpreter(): Unit
Create a new interpreter.
Create a new interpreter.
- Definition Classes
- ILoop
-
def
echo(msg: String): Unit
- Attributes
- protected
- Definition Classes
- ILoop
-
def
echoAndRefresh(msg: String): Unit
- Attributes
- protected
- Definition Classes
- ILoop
-
def
echoCommandMessage(msg: String): Unit
- Definition Classes
- ILoop → LoopCommands
-
def
editCommand(what: String, editor: Option[String]): Result
- Definition Classes
- ILoop
-
def
editCommand(what: String): Result
- Definition Classes
- ILoop
-
def
enablePowerMode(isDuringInit: Boolean): Unit
- Definition Classes
- ILoop
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
fileCompletion: Completion
- Definition Classes
- ILoop
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
helpCommand(line: String): Result
print a friendly help message
print a friendly help message
- Definition Classes
- LoopCommands
-
def
helpSummary(): Unit
- Definition Classes
- LoopCommands
-
def
history: History
- Definition Classes
- ILoop
-
lazy val
historyCommand: LoopCommand { def defaultLines: Int }
Show the history
Show the history
- Definition Classes
- ILoop
-
var
in: InteractiveReader
- Definition Classes
- ILoop
-
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
-
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
-
var
intp: IMain
- Definition Classes
- ILoop
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
val
isSbt: Boolean(true)
- Attributes
- protected
- Definition Classes
- InterpreterLoop → ILoop
-
def
lineCommand(what: String): Result
- Definition Classes
- ILoop
-
def
loadCommand(arg: String): Result
- Definition Classes
- ILoop
-
final
def
loop(line: String): LineResult
- Definition Classes
- ILoop
- Annotations
- @tailrec()
-
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
-
var
mum: Boolean
- Attributes
- protected
- Definition Classes
- ILoop
-
def
mumly[A](op: ⇒ A): A
- Definition Classes
- ILoop
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newJavap(): JavapClass
- Attributes
- protected
- Definition Classes
- ILoop
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
out: JPrintWriter
- Attributes
- protected
- Definition Classes
- ILoop → LoopCommands
-
def
pasteCommand(arg: String): Result
- Definition Classes
- ILoop
-
lazy val
power: Power[StdReplVals]
- Definition Classes
- ILoop
-
def
powerCmd(): Result
- Definition Classes
- ILoop
-
lazy val
powerCommands: List[LoopCommand]
Power user commands
Power user commands
- Definition Classes
- ILoop
-
def
printWelcome(): Unit
Print a welcome message!
Print a welcome message!
- Definition Classes
- ILoop
-
def
process(settings: Settings): Boolean
Start an interpreter with the given settings.
-
def
processLine(line: String): Boolean
- Definition Classes
- ILoop
-
def
prompt: String
Prompt to print when awaiting input
Prompt to print when awaiting input
- Definition Classes
- ILoop
-
def
replay(): Unit
Announces as it replays.
Announces as it replays.
- Definition Classes
- ILoop
-
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
-
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
-
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
-
val
replayQuestionMessage: String
- Definition Classes
- ILoop
-
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 toreplay
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
-
def
reset(): Unit
Resets without announcements.
Resets without announcements.
- Definition Classes
- ILoop
-
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
-
def
saveCommand(filename: String): Result
- Definition Classes
- ILoop
-
def
savingReader[T](body: ⇒ T): T
- Definition Classes
- ILoop
-
def
savingReplayStack[T](body: ⇒ T): T
- Definition Classes
- ILoop
-
def
searchHistory(_cmdline: String): Unit
Search the history
Search the history
- Definition Classes
- ILoop
-
var
settings: Settings
- Definition Classes
- ILoop
-
val
settingsCompletion: Completion
- Definition Classes
- ILoop
-
lazy val
shCommand: LoopCommand
fork a shell and run a command
fork a shell and run a command
- Definition Classes
- ILoop
-
lazy val
standardCommands: collection.immutable.List[LoopCommand]
Standard commands *
Standard commands *
- Definition Classes
- ILoop
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
verbosity(): Unit
- Definition Classes
- ILoop
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withFile[A](filename: String)(action: (File) ⇒ A): Option[A]
- Definition Classes
- ILoop
-
object
LineResults extends Enumeration
- Definition Classes
- ILoop
-
object
LoopCommand
- Definition Classes
- LoopCommands
-
object
Result extends Serializable
- Definition Classes
- LoopCommands
Deprecated Value Members
-
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
-
var
addedClasspath: String
- Definition Classes
- ILoop
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use reset, replay or require to update class path
-
def
interpreter: IMain
- Definition Classes
- ILoop
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) use
intp
instead.
-
def
interpreter_=(i: Interpreter): Unit
- Definition Classes
- ILoop
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) use
intp
instead.
-
def
main(settings: Settings): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) use
process
instead