class ILoop 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.
- Source
- ILoop.scala
- Version
1.2
- Alphabetic
- By Inheritance
- ILoop
- LoopCommands
- AnyRef
- Any
- by loopToInterpreter
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ILoop()
- new ILoop(in0: BufferedReader, out: JPrintWriter)
- new ILoop(in0: Option[BufferedReader], out: JPrintWriter)
Type Members
- class ILoopInterpreter extends IMain
- class ReplCompletion extends Completion
-
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
- def +(other: String): String
- def ->[B](y: B): (ILoop, B)
-
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
-
def
addUrlsToClassPath(urls: URL*): Unit
Adds all specified jars to the compile and runtime classpaths.
Adds all specified jars to the compile and runtime classpaths.
- urls
The list of items to add to the compile and runtime classpaths.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- Note
Currently only supports jars, not directories.
-
def
allDefinedNames: (⇒collection.immutable.List[Global.Name]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
allHandlers: (⇒collection.immutable.List[(IMain._1.type.memberHandlers)#MemberHandler]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
allImportedNames: (⇒collection.immutable.List[Global.Name]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
ambiguousError(cmd: String): Result
- Definition Classes
- LoopCommands
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asyncEcho(async: Boolean, msg: ⇒ String): Unit
-
def
asyncMessage(msg: String): Unit
- Attributes
- protected
-
def
backticked(s: String): String
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
beQuietDuring[T](body: ⇒ T): T
Temporarily be quiet
Temporarily be quiet
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
beSilentDuring[T](operation: ⇒ T): T
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
bind[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
bind(p: NamedParam): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
bind(name: String, boundType: String, value: Any, modifiers: List[String] = Nil): Results.Result
Bind a specified name to a specified value.
Bind a specified name to a specified value. The name may later be used by expressions passed to interpret.
A fresh
ReadEvalPrint
, which defines aline
package, is used to compile a customeval
object that wraps the bound value.If the bound value is successfully installed, then bind the name by interpreting
val name = $line42.$eval.value
.- name
the variable name to bind
- boundType
the type of the variable, as a string
- value
the object value to bind to it
- returns
an indication of whether the binding succeeded
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
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. -
def
classLoader: util.AbstractFileClassLoader
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
classOfTerm(id: String): Option[JClass]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
cleanMemberDecl: ((owner: _1.global.Symbol, member: _1.global.Name)_1.global.Type) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
cleanTypeAfterTyper: ((sym: => _1.global.Symbol)_1.global.Type) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
clearExecutionWrapper(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
close(): Unit
This instance is no longer needed, so release any resources it is using.
This instance is no longer needed, so release any resources it is using. The reporter's output gets flushed.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
closeInterpreter(): Unit
Close the interpreter and set the var to null.
-
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.
-
def
commands: List[LoopCommand]
Available commands
Available commands
- Definition Classes
- ILoop → LoopCommands
-
def
compileSources(sources: SourceFile*): Boolean
Compile an nsc SourceFile.
Compile an nsc SourceFile. Returns true if there are no compilation errors, or false otherwise.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
compileSourcesKeepingRun: ((sources: scala.reflect.internal.util.SourceFile*)(Boolean, _1.global.Run)) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
compileString(code: String): Boolean
Compile a string.
Compile a string. Returns true if there are no compilation errors, or false otherwise.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
compilerClasspath: Seq[URL]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
createInterpreter(): Unit
Create a new interpreter.
-
def
dealiasNonPublic: ((tp: _1.global.Type)_1.global.Type) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
debugging[T](msg: String)(res: T): T
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
definedSymbolList: (⇒collection.immutable.List[Global.Symbol]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
definedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
definedTypes: (⇒collection.immutable.List[Global.TypeName]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
directBind[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
directBind(p: NamedParam): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
directBind(name: String, boundType: String, value: Any): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
echo(msg: String): Unit
- Attributes
- protected
-
def
echoAndRefresh(msg: String): Unit
- Attributes
- protected
-
def
echoCommandMessage(msg: String): Unit
- Definition Classes
- ILoop → LoopCommands
- def editCommand(what: String, editor: Option[String]): Result
- def editCommand(what: String): Result
- def enablePowerMode(isDuringInit: Boolean): Unit
-
final
def
ensureClassLoader(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def ensuring(cond: (ILoop) ⇒ Boolean, msg: ⇒ Any): ILoop
- def ensuring(cond: (ILoop) ⇒ Boolean): ILoop
- def ensuring(cond: Boolean, msg: ⇒ Any): ILoop
- def ensuring(cond: Boolean): ILoop
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
executionWrapper: String
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- val fileCompletion: Completion
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatPath: ((sym: _1.global.Symbol)String) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def formatted(fmtstr: String): String
-
lazy val
formatting: Formatting
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getClassIfDefined: ((path: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
getModuleIfDefined: ((path: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
lazy val
global: Global
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
-
lazy val
historyCommand: LoopCommand { def defaultLines: Int }
Show the history
-
def
implicitSymbolsBySource: (⇒collection.immutable.List[(Global.Symbol, collection.immutable.List[Global.Symbol])]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
importHandlers: (⇒collection.immutable.List[(IMain._1.type.memberHandlers)#ImportHandler]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
importedSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
importedSymbolsBySource: (⇒collection.immutable.List[(Global.Symbol, collection.immutable.List[Global.Symbol])]) forSome {val _1: IMain}
Tuples of (source, imported symbols) in the order they were imported.
Tuples of (source, imported symbols) in the order they were imported.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
importedTermSymbols: (⇒collection.immutable.List[Global.TermSymbol]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
- var in: InteractiveReader
-
def
initialize(postInitSignal: ⇒ Unit): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
initializeSynchronous(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
interpret(line: String, synthetic: Boolean): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
interpret(line: String): Results.Result
Interpret one line of input.
Interpret one line of input. All feedback, including parse errors and evaluation results, are printed via the supplied compiler's reporter. Values defined are available for future interpreted strings.
The return value is whether the line was interpreter successfully, e.g. that there were no parse errors.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
interpretAllFrom(file: File, verbose: Boolean = false): Unit
interpret all lines from a specified file
-
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.
-
def
interpretSynthetic(line: String): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- var intp: IMain
-
lazy val
isClassBased: Boolean
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
isInitializeComplete: Boolean
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
isettings: ISettings
interpreter settings
interpreter settings
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
languageSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
languageWildcardHandlers: (⇒collection.immutable.List[(Imports._1.type.memberHandlers)#ImportHandler]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
languageWildcardSyms: (⇒collection.immutable.List[Global.Symbol]) forSome {val _1: IMain}
Symbols whose contents are language-defined to be imported.
Symbols whose contents are language-defined to be imported.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
lastRequest: Request
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
lastWarnings: collection.immutable.List[(Position, String)]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def lineCommand(what: String): Result
- def loadCommand(arg: String): Result
-
final
def
loop(line: String): LineResult
- 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.
-
lazy val
memberHandlers: MemberHandlers { val intp: scala.tools.nsc.interpreter.IMain }
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
mostRecentVar: String
Returns the name of the most recent interpreter result.
Returns the name of the most recent interpreter result. Mostly this exists so you can conveniently invoke methods on the previous result.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
var
mum: Boolean
- Attributes
- protected
- def mumly[A](op: ⇒ A): A
-
def
namedDefinedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newJavap(): JavapClass
- Attributes
- protected
-
def
newPresentationCompiler(): interactive.Global
Create an instance of the presentation compiler with a classpath comprising the REPL's configured classpath and the classes output by previously compiled REPL lines.
Create an instance of the presentation compiler with a classpath comprising the REPL's configured classpath and the classes output by previously compiled REPL lines.
You may directly interact with this compiler from any thread, although you must not access it concurrently from multiple threads.
You may downcast the
reporter
toStoreReporter
to access type errors.- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- PresentationCompilation
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
originalPath: ((sym: _1.global.Symbol)String) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
originalPath: ((name: _1.global.Name)String) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
originalPath(name: String): String
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
val
out: JPrintWriter
- Attributes
- protected
- Definition Classes
- ILoop → LoopCommands
-
var
partialInput: String
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def pasteCommand(arg: String): Result
- lazy val power: Power[StdReplVals]
- def powerCmd(): Result
-
lazy val
powerCommands: List[LoopCommand]
Power user commands
-
def
prevRequestList: collection.immutable.List[Request]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
printWelcome(): Unit
Print a welcome message!
-
def
process(settings: Settings): Boolean
Start an interpreter with the given settings.
Start an interpreter with the given settings.
- returns
true if successful
- def processLine(line: String): Boolean
-
def
prompt: String
Prompt to print when awaiting input
-
def
quietBind(p: NamedParam): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
quietRun[T](code: String): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
val
readInstanceName: String
For class based repl mode we use an .INSTANCE accessor.
For class based repl mode we use an .INSTANCE accessor.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
readRootPath: ((readPath: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
rebind(p: NamedParam): Results.Result
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
recordRequest: ((req: _1.Request)Unit) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
replScope: (⇒Global.Scope) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
replay(): Unit
Announces as it replays.
-
def
replayCommand(line: String): Unit
create a new interpreter and replay the given commands
-
var
replayCommandStack: List[String]
A reverse list of commands to replay if the user requests a :replay
-
def
replayCommands: collection.immutable.List[String]
A list of commands to replay if the user requests a :replay
- val replayQuestionMessage: String
-
lazy val
reporter: ReplReporter
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
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. -
def
reset(): Unit
Resets without announcements.
-
def
resetClassLoader(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
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. -
def
runtimeClassAndTypeOfTerm: ((id: String)Option[(Class[_], _1.global.Type)]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
lazy val
runtimeMirror: Mirror
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
runtimeTypeOfTerm: ((id: String)_1.global.Type) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def saveCommand(filename: String): Result
- def savingReader[T](body: ⇒ T): T
- def savingReplayStack[T](body: ⇒ T): T
-
def
searchHistory(_cmdline: String): Unit
Search the history
-
def
sessionImportedSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
sessionWildcards: (⇒collection.immutable.List[Global.Type]) forSome {val _1: IMain}
Types which have been wildcard imported, such as: val x = "abc" ; import x._ // type java.lang.String import java.lang.String._ // object java.lang.String
Types which have been wildcard imported, such as: val x = "abc" ; import x._ // type java.lang.String import java.lang.String._ // object java.lang.String
Used by tab completion.
XXX right now this gets import x._ and import java.lang.String._, but doesn't figure out import String._. There's a lot of ad hoc scope twiddling which should be swept away in favor of digging into the compiler scopes.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- Imports
-
def
setContextClassLoader(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
setExecutionWrapper(code: String): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- var settings: Settings
- val settingsCompletion: Completion
-
lazy val
shCommand: LoopCommand
fork a shell and run a command
-
def
showCodeIfDebugging(code: String): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
showDirectory(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
lazy val
standardCommands: collection.immutable.List[LoopCommand]
Standard commands *
-
def
symbolDefString: ((sym: _1.global.Symbol)String) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
symbolOfIdent: ((id: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
symbolOfLine: ((code: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
symbolOfName: ((id: _1.global.Name)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
symbolOfTerm: ((id: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
symbolOfType: ((id: String)_1.global.Symbol) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
translateEnclosingClass(n: String): Option[String]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
translateOriginalPath(p: String): String
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
translatePath(path: String): Option[String]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
translateSimpleResource(path: String): Option[String]
If path represents a class resource in the default package, see if the corresponding symbol has a class file that is a REPL artifact residing at a different resource path.
If path represents a class resource in the default package, see if the corresponding symbol has a class file that is a REPL artifact residing at a different resource path. Translate X.class to $line3/$read$$iw$$iw$X.class.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
tryTwice: ((op: => _1.global.Symbol)_1.global.Symbol) forSome {val _1: IMain}
It's a bit of a shotgun approach, but for now we will gain in robustness.
It's a bit of a shotgun approach, but for now we will gain in robustness. Try a symbol-producing operation at phase typer, and if that is NoSymbol, try again at phase flatten. I'll be able to lose this and run only from exitingTyper as soon as I figure out exactly where a flat name is sneaking in when calculating imports.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
typeOfExpression: ((expr: String, silent: Boolean)_1.global.Type) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
typeOfTerm: ((id: String)_1.global.Type) forSome {val _1: IMain}
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
unqualifiedIds: List[String]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
valueOfTerm(id: String): Option[Any]
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def verbosity(): Unit
-
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
- @throws( ... )
- def withFile[A](filename: String)(action: (File) ⇒ A): Option[A]
-
def
withLabel[A](temp: String)(body: ⇒ A): A
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
withoutTruncating[A](body: ⇒ A): A
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
withoutUnwrapping(op: ⇒ Unit): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
-
def
withoutWarnings[T](body: ⇒ T): T
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- def →[B](y: B): (ILoop, B)
- object LineResults extends Enumeration
-
object
LoopCommand
- Definition Classes
- LoopCommands
-
object
Result
extends Serializable
- Definition Classes
- LoopCommands
Shadowed Implicit Value Members
-
def
finalize(): Unit
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iLoop: IMain).finalize()
- Definition Classes
- IMain → AnyRef
-
def
reset(): Unit
Reset this interpreter, forgetting all user-specified requests.
Reset this interpreter, forgetting all user-specified requests.
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iLoop: IMain).reset()
- Definition Classes
- IMain
-
def
settings: Settings
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iLoop: IMain).settings
- Definition Classes
- IMain
Deprecated Value Members
-
def
addClasspath(arg: String): Unit
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use reset, replay or require to update class path
-
var
addedClasspath: String
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use reset, replay or require to update class path
-
def
interpreter: IMain
- Annotations
- @deprecated
- Deprecated
(Since version 2.9.0) use
intp
instead.
-
def
interpreter_=(i: Interpreter): Unit
- 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
-
def
virtualDirectory: ReplDir
- Implicit
- This member is added by an implicit conversion from ILoop to IMain performed by method loopToInterpreter in scala.tools.nsc.interpreter.ILoop.
- Definition Classes
- IMain
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) Use replOutput.dir instead
The Scala compiler and reflection APIs.