Instance Constructors
-
new
ILoop()
-
new
ILoop(in0: BufferedReader, out: JPrintWriter)
-
new
ILoop(in0: Option[BufferedReader], out: JPrintWriter)
Type Members
-
-
-
-
abstract
class
LoopCommand extends (String) ⇒ Result
-
-
case class
Result(keepRunning: Boolean, lineToRecord: Option[String]) extends Product with Serializable
-
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (ILoop, B)
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
-
object
Result extends Serializable
-
def
addClasspath(arg: String): Unit
-
def
addImports(ids: String*): Results.Result
-
def
addReplay(cmd: String): Unit
-
def
addThunk(body: ⇒ Unit): Unit
-
var
addedClasspath: String
-
def
aliasForType(path: String): Option[String]
-
def
allDefHandlers: (⇒collection.immutable.List[(IMain._2157.type.memberHandlers)#MemberDefHandler]) forSome {val _2157: IMain}
-
def
allDefSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2163: IMain}
-
def
allDefinedNames: (⇒collection.immutable.List[Global.Name]) forSome {val _2169: IMain}
-
def
allHandlers: (⇒collection.immutable.List[(IMain._2175.type.memberHandlers)#MemberHandler]) forSome {val _2175: IMain}
-
def
allImplicits: (⇒collection.immutable.List[Global.Name { ... /* 5 definitions in type refinement */ }]) forSome {val _2181: IMain}
-
def
allImportedNames: (⇒collection.immutable.List[Global.Name]) forSome {val _2187: IMain}
-
def
allSeenTypes: collection.immutable.List[String]
-
def
apply[T]: ([T](implicit evidence$7: scala.reflect.ClassTag[T])_2193.global.Symbol) forSome {val _2193: IMain}
-
def
apply: ((name: String)_2199.global.Symbol) forSome {val _2199: IMain}
-
final
def
asInstanceOf[T0]: T0
-
def
asyncEcho(async: Boolean, msg: ⇒ String): Unit
-
def
asyncMessage(msg: String): Unit
-
def
awaitInitialized(): Boolean
-
def
beQuietDuring[T](body: ⇒ T): T
-
def
beSilentDuring[T](operation: ⇒ T): T
-
def
bind[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): Results.Result
-
-
def
bind(name: String, boundType: String, value: Any, modifiers: List[String] = Nil): Results.Result
-
def
bindSyntheticValue(x: Any): Results.Result
-
def
bindValue(name: String, x: Any): Results.Result
-
-
-
-
def
classOfTerm(id: String): Option[JClass]
-
def
classSymbols: (⇒collection.immutable.List[Global.ClassSymbol]) forSome {val _2205: IMain}
-
def
cleanMemberDecl: ((owner: _2211.global.Symbol, member: _2211.global.Name)_2211.global.Type) forSome {val _2211: IMain}
-
def
clearExecutionWrapper(): Unit
-
def
clone(): AnyRef
-
def
close(): Unit
-
def
closeInterpreter(): Unit
-
def
command(line: String): Result
-
-
def
compileSources(sources: SourceFile*): Boolean
-
def
compileSourcesKeepingRun: ((sources: scala.reflect.internal.util.SourceFile*)(Boolean, _2217.global.Run)) forSome {val _2217: IMain}
-
def
compileString(code: String): Boolean
-
lazy val
compiler: (⇒IMain._2219.type.global.type) forSome {val _2219: IMain}
-
def
compilerClasspath: Seq[URL]
-
def
createAsyncListener(): Future[Unit]
-
def
createInterpreter(): Unit
-
def
debugging[T](msg: String)(res: T): T
-
def
definedSymbolList: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2225: IMain}
-
def
definedSymbols: (⇒Set[Global.Symbol]) forSome {val _2231: IMain}
-
def
definedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _2237: IMain}
-
def
definedTypes: (⇒collection.immutable.List[Global.TypeName]) forSome {val _2243: IMain}
-
def
definitionForName: ((name: _2249.global.Name)Option[_2249.memberHandlers.MemberHandler]) forSome {val _2249: IMain}
-
def
directBind[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): Results.Result
-
-
def
directBind(name: String, boundType: String, value: Any): Results.Result
-
def
echo(msg: String): Unit
-
def
echoAndRefresh(msg: String): Unit
-
def
echoCommandMessage(msg: String): Unit
-
def
echoNoNL(msg: String): Unit
-
def
enablePowerMode(isDuringInit: Boolean): Unit
-
final
def
ensureClassLoader(): Unit
-
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
-
def
equals(arg0: Any): Boolean
-
def
executionWrapper: String
-
def
finalize(): Unit
-
def
flatName(id: String): String
-
def
formatted(fmtstr: String): String
-
lazy val
formatting: Formatting
-
def
generatedName(simpleName: String): Option[String]
-
final
def
getClass(): Class[_]
-
-
lazy val
global: Global
-
def
handleTermRedefinition: ((name: _2255.global.TermName, old: _2255.Request, req: _2255.Request)Unit) forSome {val _2255: IMain}
-
def
handleTypeRedefinition: ((name: _2261.global.TypeName, old: _2261.Request, req: _2261.Request)Unit) forSome {val _2261: IMain}
-
def
hashCode(): Int
-
def
helpCommand(line: String): Result
-
-
lazy val
historyCommand: LoopCommand { def defaultLines: Int }
-
def
implicitSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2267: IMain}
-
def
implicitSymbolsBySource: (⇒collection.immutable.List[(Global.Symbol, collection.immutable.List[Global.Symbol])]) forSome {val _2273: IMain}
-
def
importHandlers: (⇒collection.immutable.List[(IMain._2279.type.memberHandlers)#ImportHandler]) forSome {val _2279: IMain}
-
def
importedSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2285: IMain}
-
def
importedSymbolsBySource: (⇒collection.immutable.List[(Global.Symbol, collection.immutable.List[Global.Symbol])]) forSome {val _2291: IMain}
-
def
importedTermNamed: ((name: String)_2297.global.Symbol) forSome {val _2297: IMain}
-
def
importedTermSymbols: (⇒collection.immutable.List[Global.TermSymbol]) forSome {val _2303: IMain}
-
def
importedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _2309: IMain}
-
def
importedTypeSymbols: (⇒collection.immutable.List[Global.TypeSymbol]) forSome {val _2315: IMain}
-
def
importedTypes: (⇒collection.immutable.List[Global.TypeName]) forSome {val _2321: IMain}
-
-
def
initialize(postInitSignal: ⇒ Unit): Unit
-
def
initializeSynchronous(): Unit
-
def
initializedCallback(): Unit
-
def
interpret(line: String, synthetic: Boolean): Results.Result
-
def
interpret(line: String): Results.Result
-
def
interpretAllFrom(file: File): Unit
-
def
interpretStartingWith(code: String): Option[String]
-
def
interpretSynthetic(line: String): Results.Result
-
-
def
isAsync: Boolean
-
def
isInitializeComplete: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isNoImports: Boolean
-
def
isNoPredef: Boolean
-
def
isParseable(line: String): Boolean
-
lazy val
isettings: ISettings
-
def
languageSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2327: IMain}
-
def
languageWildcardHandlers: (⇒collection.immutable.List[(Imports._2333.type.memberHandlers)#ImportHandler]) forSome {val _2333: IMain}
-
def
languageWildcardSyms: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2339: IMain}
-
def
languageWildcards: (⇒collection.immutable.List[Global.Type]) forSome {val _2345: IMain}
-
def
lastRequest: Request
-
def
lastWarnings: collection.immutable.List[(Position, String)]
-
def
loadCommand(arg: String): Result
-
def
loadFiles(settings: Settings): Unit
-
def
loop(): Unit
-
lazy val
memberHandlers: MemberHandlers { val intp: scala.tools.nsc.interpreter.IMain }
-
def
methodSymbols: (⇒collection.immutable.List[Global.MethodSymbol]) forSome {val _2365: IMain}
-
def
mostRecentLine: String
-
def
mostRecentVar: String
-
def
namedDefinedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _2371: IMain}
-
final
def
ne(arg0: AnyRef): Boolean
-
-
def
normalizeNonPublic: ((tp: _2377.global.Type)_2377.global.Type) forSome {val _2377: IMain}
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
optFlatName(id: String): Option[String]
-
val
originalClassLoader: ClassLoader
-
-
def
parse: ((line: String)Option[List[_2383.global.Tree]]) forSome {val _2383: IMain}
-
def
pasteCommand(): Result
-
def
pathToName: ((name: _2389.global.Name)String) forSome {val _2389: IMain}
-
def
pathToTerm(id: String): String
-
def
pathToType(id: String): String
-
def
postInitThunks: collection.immutable.List[() ⇒ Unit]
-
def
postInitialization(): Unit
-
-
def
powerCmd(): Result
-
-
def
prevRequestList: collection.immutable.List[Request]
-
def
printWelcome(): Unit
-
def
process(args: Array[String]): Boolean
-
def
process(settings: Settings): Boolean
-
def
prompt: String
-
-
def
quietImport(ids: String*): Results.Result
-
def
quietRun[T](code: String): Results.Result
-
-
def
recordRequest: ((req: _2401.Request)Unit) forSome {val _2401: IMain}
-
def
replay(): Unit
-
var
replayCommandStack: List[String]
-
def
replayCommands: collection.immutable.List[String]
-
val
replayQuestionMessage: String
-
lazy val
repllog: Logger
-
-
def
requestForIdent(line: String): Option[Request]
-
def
requestForName: ((name: _2414.global.Name)Option[_2414.Request]) forSome {val _2414: IMain}
-
def
requestForReqId(id: Int): Option[Request]
-
def
requestHistoryForName: ((name: _2427.global.Name)List[_2427.Request]) forSome {val _2427: IMain}
-
-
def
rerunWith(names: String*): Results.Result
-
def
reset(): Unit
-
def
resetClassLoader(): Unit
-
def
resetCommand(): Unit
-
def
runThunks(): Unit
-
def
runtimeClassAndTypeOfTerm: ((id: String)Option[(Class[_], _2433.global.Type)]) forSome {val _2433: IMain}
-
def
runtimeTypeOfTerm: ((id: String)_2439.global.Type) forSome {val _2439: IMain}
-
def
savingReader[T](body: ⇒ T): T
-
def
savingReplayStack[T](body: ⇒ T): T
-
def
savingSettings[T](fn: (Settings) ⇒ Unit)(body: ⇒ T): T
-
def
searchHistory(_cmdline: String): Unit
-
def
sessionImportedSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2445: IMain}
-
def
sessionWildcards: (⇒collection.immutable.List[Global.Type]) forSome {val _2451: IMain}
-
def
setContextClassLoader(): Unit
-
def
setExecutionWrapper(code: String): Unit
-
def
setPrompt(prompt: String): Unit
-
-
-
def
showCodeIfDebugging(code: String): Unit
-
implicit
def
stabilizeIMain(intp: IMain): IMainOps[stabilizeIMain.intp.type]
-
lazy val
standardCommands: collection.immutable.List[LoopCommand]
-
def
symbolDefString: ((sym: _2457.global.Symbol)String) forSome {val _2457: IMain}
-
def
symbolOfLine: ((code: String)_2463.global.Symbol) forSome {val _2463: IMain}
-
def
symbolOfTerm: ((id: String)_2469.global.Symbol) forSome {val _2469: IMain}
-
def
symbolOfType: ((id: String)_2475.global.Symbol) forSome {val _2475: IMain}
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
terms[T]: ([T](implicit evidence$6: scala.reflect.ClassTag[T])_2481.global.Symbol) forSome {val _2481: IMain}
-
def
terms: ((name: String)_2487.global.Symbol) forSome {val _2487: IMain}
-
def
toString(): String
-
def
treesForRequestId: ((id: Int)List[_2493.global.Tree]) forSome {val _2493: IMain}
-
def
typeOfExpression: ((expr: String, silent: Boolean)_2499.global.Type) forSome {val _2499: IMain}
-
def
typeOfTerm: ((id: String)_2505.global.Type) forSome {val _2505: IMain}
-
def
types[T]: ([T](implicit evidence$5: scala.reflect.ClassTag[T])_2511.global.Symbol) forSome {val _2511: IMain}
-
def
types: ((name: String)_2517.global.Symbol) forSome {val _2517: IMain}
-
def
unqualifiedIds: collection.immutable.List[String]
-
def
valueOfTerm(id: String): Option[AnyRef]
-
def
verbosity(): Unit
-
val
virtualDirectory: VirtualDirectory
-
def
visibleTermNames: (⇒collection.immutable.List[Global.Name]) forSome {val _2523: IMain}
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
wildcardTypes: (⇒collection.immutable.List[Global.Type]) forSome {val _2529: IMain}
-
def
withFile(filename: String)(action: (File) ⇒ Unit): Unit
-
def
withoutUnwrapping(op: ⇒ Unit): Unit
-
def
→[B](y: B): (ILoop, B)
Shadowed Implict Value Members
-
def
reset(): Unit
-
val
self: Any
-
val
self: Any
-
Deprecated Value Members
-
def
interpreter: IMain
-
def
interpreter_=(i: Interpreter): Unit
-
def
main(settings: Settings): Unit
-
-
Inherited from Any
Inherited by implicit conversion loopToInterpreter from
ILoop to IMain
Inherited by implicit conversion any2stringadd from
ILoop to StringAdd
Inherited by implicit conversion any2stringfmt from
ILoop to StringFormat
Inherited by implicit conversion any2ArrowAssoc from
ILoop to ArrowAssoc[ILoop]
Inherited by implicit conversion any2Ensuring from
ILoop to Ensuring[ILoop]
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.
1.2