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
addReplay(cmd: String): Unit
-
var
addedClasspath: String
-
def
allDefinedNames: (⇒collection.immutable.List[Global.Name]) forSome {val _1924: IMain}
-
def
allHandlers: (⇒collection.immutable.List[(IMain._1930.type.memberHandlers)#MemberHandler]) forSome {val _1930: IMain}
-
def
allImportedNames: (⇒collection.immutable.List[Global.Name]) forSome {val _1936: IMain}
-
final
def
asInstanceOf[T0]: T0
-
def
asyncEcho(async: Boolean, msg: ⇒ String): Unit
-
def
asyncMessage(msg: String): Unit
-
def
backticked(s: String): String
-
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
classOfTerm(id: String): Option[JClass]
-
def
cleanMemberDecl: ((owner: _1942.global.Symbol, member: _1942.global.Name)_1942.global.Type) forSome {val _1942: IMain}
-
def
cleanTypeAfterTyper: ((sym: => _1948.global.Symbol)_1948.global.Type) forSome {val _1948: 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, _1954.global.Run)) forSome {val _1954: IMain}
-
def
compileString(code: String): Boolean
-
def
compilerClasspath: Seq[URL]
-
def
createInterpreter(): Unit
-
def
debugging[T](msg: String)(res: T): T
-
def
definedSymbolList: (⇒collection.immutable.List[Global.Symbol]) forSome {val _1960: IMain}
-
def
definedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _1966: IMain}
-
def
definedTypes: (⇒collection.immutable.List[Global.TypeName]) forSome {val _1972: 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
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
flatPath: ((sym: _1978.global.Symbol)String) forSome {val _1978: IMain}
-
def
formatted(fmtstr: String): String
-
lazy val
formatting: Formatting
-
final
def
getClass(): Class[_]
-
def
getClassIfDefined: ((path: String)_1984.global.Symbol) forSome {val _1984: IMain}
-
def
getModuleIfDefined: ((path: String)_1990.global.Symbol) forSome {val _1990: IMain}
-
lazy val
global: Global
-
def
hashCode(): Int
-
def
helpCommand(line: String): Result
-
-
lazy val
historyCommand: LoopCommand { def defaultLines: Int }
-
def
implicitSymbolsBySource: (⇒collection.immutable.List[(Global.Symbol, collection.immutable.List[Global.Symbol])]) forSome {val _1996: IMain}
-
def
importHandlers: (⇒collection.immutable.List[(IMain._2002.type.memberHandlers)#ImportHandler]) forSome {val _2002: IMain}
-
def
importedSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2008: IMain}
-
def
importedSymbolsBySource: (⇒collection.immutable.List[(Global.Symbol, collection.immutable.List[Global.Symbol])]) forSome {val _2014: IMain}
-
def
importedTermSymbols: (⇒collection.immutable.List[Global.TermSymbol]) forSome {val _2020: IMain}
-
-
def
initialize(postInitSignal: ⇒ Unit): Unit
-
def
initializeSynchronous(): 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
isInitializeComplete: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
lazy val
isettings: ISettings
-
def
languageSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2026: IMain}
-
def
languageWildcardHandlers: (⇒collection.immutable.List[(Imports._2032.type.memberHandlers)#ImportHandler]) forSome {val _2032: IMain}
-
def
languageWildcardSyms: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2038: IMain}
-
def
lastRequest: Request
-
def
lastWarnings: collection.immutable.List[(Position, String)]
-
def
loadCommand(arg: String): Result
-
def
loadFiles(settings: Settings): Unit
-
final
def
loop(): Unit
-
lazy val
memberHandlers: MemberHandlers { val intp: scala.tools.nsc.interpreter.IMain }
-
def
mostRecentVar: String
-
def
namedDefinedTerms: (⇒collection.immutable.List[Global.TermName]) forSome {val _2058: IMain}
-
final
def
ne(arg0: AnyRef): Boolean
-
-
def
normalizeNonPublic: ((tp: _2064.global.Type)_2064.global.Type) forSome {val _2064: IMain}
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
originalPath: ((sym: _2070.global.Symbol)String) forSome {val _2070: IMain}
-
def
originalPath: ((name: _2076.global.Name)String) forSome {val _2076: IMain}
-
def
originalPath(name: String): String
-
-
def
parse: ((line: String)Option[List[_2082.global.Tree]]) forSome {val _2082: IMain}
-
def
pasteCommand(): Result
-
-
def
powerCmd(): Result
-
-
def
prevRequestList: collection.immutable.List[Request]
-
def
printWelcome(): Unit
-
def
process(settings: Settings): Boolean
-
def
processLine(line: String): Boolean
-
def
prompt: String
-
-
def
quietRun[T](code: String): Results.Result
-
-
def
recordRequest: ((req: _2094.Request)Unit) forSome {val _2094: IMain}
-
def
replScope: (⇒Global.Scope) forSome {val _2100: IMain}
-
def
replay(): Unit
-
var
replayCommandStack: List[String]
-
def
replayCommands: collection.immutable.List[String]
-
val
replayQuestionMessage: String
-
-
def
reset(): Unit
-
def
resetClassLoader(): Unit
-
def
resetCommand(): Unit
-
def
runtimeClassAndTypeOfTerm: ((id: String)Option[(Class[_], _2106.global.Type)]) forSome {val _2106: IMain}
-
lazy val
runtimeMirror: reflect.api.JavaUniverse.Mirror
-
def
runtimeTypeOfTerm: ((id: String)_2112.global.Type) forSome {val _2112: IMain}
-
def
savingReader[T](body: ⇒ T): T
-
def
savingReplayStack[T](body: ⇒ T): T
-
def
searchHistory(_cmdline: String): Unit
-
def
sessionImportedSymbols: (⇒collection.immutable.List[Global.Symbol]) forSome {val _2118: IMain}
-
def
sessionWildcards: (⇒collection.immutable.List[Global.Type]) forSome {val _2124: IMain}
-
def
setContextClassLoader(): Unit
-
def
setExecutionWrapper(code: String): Unit
-
-
-
def
showCodeIfDebugging(code: String): Unit
-
def
showDirectory(): Unit
-
lazy val
standardCommands: collection.immutable.List[LoopCommand]
-
def
symbolDefString: ((sym: _2130.global.Symbol)String) forSome {val _2130: IMain}
-
def
symbolOfIdent: ((id: String)_2136.global.Symbol) forSome {val _2136: IMain}
-
def
symbolOfLine: ((code: String)_2142.global.Symbol) forSome {val _2142: IMain}
-
def
symbolOfName: ((id: _2148.global.Name)_2148.global.Symbol) forSome {val _2148: IMain}
-
def
symbolOfTerm: ((id: String)_2154.global.Symbol) forSome {val _2154: IMain}
-
def
symbolOfType: ((id: String)_2160.global.Symbol) forSome {val _2160: IMain}
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
translateEnclosingClass(n: String): Option[String]
-
def
translatePath(path: String): Option[String]
-
def
tryTwice: ((op: => _2166.global.Symbol)_2166.global.Symbol) forSome {val _2166: IMain}
-
def
typeOfExpression: ((expr: String, silent: Boolean)_2172.global.Type) forSome {val _2172: IMain}
-
def
typeOfTerm: ((id: String)_2178.global.Type) forSome {val _2178: IMain}
-
def
unqualifiedIds: List[String]
-
def
valueOfTerm(id: String): Option[Any]
-
def
verbosity(): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withFile(filename: String)(action: (File) ⇒ Unit): Unit
-
def
withoutUnwrapping(op: ⇒ Unit): Unit
-
def
withoutWarnings[T](body: ⇒ T): T
-
def
→[B](y: B): (ILoop, B)
Shadowed Implict Value Members
-
def
reset(): Unit
-
val
self: Any
-
val
self: Any
-
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