scala.tools.nsc.interpreter.ILoop

ILoopInterpreter

class ILoopInterpreter extends IMain

Self Type
ILoopInterpreter
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ILoopInterpreter
  2. IMain
  3. Imports
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ILoopInterpreter()

Type Members

  1. case class ComputedImports(prepend: String, append: String, access: String) extends Product with Serializable

    Compute imports that allow definitions from previous requests to be visible in a new request.

  2. class ReadEvalPrint extends AnyRef

    Here is where we:

  3. implicit class ReplTypeOps extends AnyRef

    Definition Classes
    IMain
  4. class Request extends AnyRef

    One line of code submitted by the user for interpretation

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (ILoopInterpreter, B)

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to ArrowAssoc[ILoopInterpreter] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def addImports(ids: String*): Results.Result

    Definition Classes
    IMain
  9. def aliasForType(path: String): Option[String]

    Parse the ScalaSig to find type aliases

    Parse the ScalaSig to find type aliases

    Definition Classes
    IMain
  10. def allDefHandlers: collection.immutable.List[(memberHandlers)#MemberDefHandler]

    Definition Classes
    IMain
  11. def allDefSymbols: collection.immutable.List[Global.Symbol]

    Definition Classes
    IMain
  12. def allDefinedNames: collection.immutable.List[Global.Name]

    Definition Classes
    IMain
  13. def allHandlers: collection.immutable.List[(memberHandlers)#MemberHandler]

    Definition Classes
    IMain
  14. def allImplicits: collection.immutable.List[Global.Name { ... /* 5 definitions in type refinement */ }]

    Definition Classes
    IMain
  15. def allImportedNames: collection.immutable.List[Global.Name]

    Definition Classes
    Imports
  16. def allSeenTypes: collection.immutable.List[String]

    Definition Classes
    IMain
  17. def apply[T](implicit arg0: ClassTag[T]): Global.Symbol

    Definition Classes
    IMain
  18. def apply(name: String): Global.Symbol

    Translate a repl-defined identifier into a Symbol.

    Translate a repl-defined identifier into a Symbol.

    Definition Classes
    IMain
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def beQuietDuring[T](body: ⇒ T): T

    Temporarily be quiet

    Temporarily be quiet

    Definition Classes
    IMain
  21. def beSilentDuring[T](operation: ⇒ T): T

    Definition Classes
    IMain
  22. def bind[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): Results.Result

    Definition Classes
    IMain
  23. def bind(p: NamedParam): Results.Result

    Definition Classes
    IMain
  24. 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.

    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

    Definition Classes
    IMain
  25. def bindSyntheticValue(x: Any): Results.Result

    Definition Classes
    IMain
  26. def bindValue(name: String, x: Any): Results.Result

    Definition Classes
    IMain
  27. def bindValue(x: Any): Results.Result

    Definition Classes
    IMain
  28. def classLoader: AbstractFileClassLoader

    Definition Classes
    IMain
  29. def classOfTerm(id: String): Option[JClass]

    Definition Classes
    IMain
  30. def classSymbols: collection.immutable.List[Global.ClassSymbol]

    Definition Classes
    IMain
  31. def cleanMemberDecl(owner: Global.Symbol, member: Global.Name): Global.Type

    Definition Classes
    IMain
  32. def clearExecutionWrapper(): Unit

    Definition Classes
    IMain
  33. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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.

    Definition Classes
    IMain
  35. def compileSources(sources: SourceFile*): Boolean

    Compile an nsc SourceFile.

    Compile an nsc SourceFile. Returns true if there are no compilation errors, or false otherwise.

    Definition Classes
    IMain
  36. def compileSourcesKeepingRun(sources: SourceFile*): (Boolean, Run)

    Definition Classes
    IMain
  37. def compileString(code: String): Boolean

    Compile a string.

    Compile a string. Returns true if there are no compilation errors, or false otherwise.

    Definition Classes
    IMain
  38. def compilerClasspath: Seq[URL]

    Definition Classes
    IMain
  39. def debugging[T](msg: String)(res: T): T

    Definition Classes
    IMain
  40. object deconstruct extends StructuredTypeStrings

    Definition Classes
    IMain
  41. def definedSymbolList: collection.immutable.List[Global.Symbol]

    Definition Classes
    IMain
  42. def definedSymbols: Set[Global.Symbol]

    Definition Classes
    IMain
  43. def definedTerms: collection.immutable.List[Global.TermName]

    Definition Classes
    IMain
  44. def definedTypes: collection.immutable.List[Global.TypeName]

    Definition Classes
    IMain
  45. def definitionForName(name: Global.Name): Option[(memberHandlers)#MemberHandler]

    Definition Classes
    IMain
  46. def directBind[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): Results.Result

    Definition Classes
    IMain
  47. def directBind(p: NamedParam): Results.Result

    Definition Classes
    IMain
  48. def directBind(name: String, boundType: String, value: Any): Results.Result

    Definition Classes
    IMain
  49. final def ensureClassLoader(): Unit

    Definition Classes
    IMain
  50. def ensuring(cond: (ILoopInterpreter) ⇒ Boolean, msg: ⇒ Any): ILoopInterpreter

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to Ensuring[ILoopInterpreter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  51. def ensuring(cond: (ILoopInterpreter) ⇒ Boolean): ILoopInterpreter

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to Ensuring[ILoopInterpreter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  52. def ensuring(cond: Boolean, msg: ⇒ Any): ILoopInterpreter

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to Ensuring[ILoopInterpreter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  53. def ensuring(cond: Boolean): ILoopInterpreter

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to Ensuring[ILoopInterpreter] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  54. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  56. def executionWrapper: String

    Definition Classes
    IMain
  57. object exprTyper extends ExprTyper

    Definition Classes
    IMain
  58. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  59. def flatName(id: String): String

    Definition Classes
    IMain
  60. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  61. lazy val formatting: Formatting

    Definition Classes
    ILoopInterpreterIMain
  62. def generatedName(simpleName: String): Option[String]

    Given a simple repl-defined name, returns the real name of the class representing it, e.

    Given a simple repl-defined name, returns the real name of the class representing it, e.g. for "Bippy" it may return

    $line19.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$Bippy
    Definition Classes
    IMain
  63. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  64. def getInterpreterClassLoader(): AbstractFileClassLoader

    Definition Classes
    IMain
  65. lazy val global: Global

    the public, go through the future compiler

    the public, go through the future compiler

    Definition Classes
    IMain
  66. def handleTermRedefinition(name: Global.TermName, old: Request, req: Request): Unit

    Definition Classes
    IMain
  67. def handleTypeRedefinition(name: Global.TypeName, old: Request, req: Request): Unit

    Stubs for work in progress.

    Stubs for work in progress.

    Definition Classes
    IMain
  68. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  69. def implicitSymbols: collection.immutable.List[Global.Symbol]

    Definition Classes
    Imports
  70. def implicitSymbolsBySource: List[(Global.Symbol, List[Global.Symbol])]

    Definition Classes
    Imports
  71. def importHandlers: collection.immutable.List[(memberHandlers)#ImportHandler]

    Definition Classes
    IMain
  72. def importedSymbols: collection.immutable.List[Global.Symbol]

    Definition Classes
    Imports
  73. def importedSymbolsBySource: List[(Global.Symbol, List[Global.Symbol])]

    Tuples of (source, imported symbols) in the order they were imported.

    Tuples of (source, imported symbols) in the order they were imported.

    Definition Classes
    Imports
  74. def importedTermNamed(name: String): Global.Symbol

    Definition Classes
    Imports
  75. def importedTermSymbols: collection.immutable.List[Global.TermSymbol]

    Definition Classes
    Imports
  76. def importedTerms: collection.immutable.List[Global.TermName]

    Definition Classes
    Imports
  77. def importedTypeSymbols: collection.immutable.List[Global.TypeSymbol]

    Definition Classes
    Imports
  78. def importedTypes: collection.immutable.List[Global.TypeName]

    Definition Classes
    Imports
  79. def importsCode(wanted: Set[Global.Name]): ComputedImports

    Attributes
    protected
    Definition Classes
    Imports
  80. def initialize(postInitSignal: ⇒ Unit): Unit

    Definition Classes
    IMain
  81. def initializeSynchronous(): Unit

    Definition Classes
    IMain
  82. def interpret(line: String, synthetic: Boolean): Results.Result

    Definition Classes
    IMain
  83. 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.

    Definition Classes
    IMain
  84. def interpretSynthetic(line: String): Results.Result

    Definition Classes
    IMain
  85. def isInitializeComplete: Boolean

    Definition Classes
    IMain
  86. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  87. def isNoImports: Boolean

    Definition Classes
    Imports
  88. def isNoPredef: Boolean

    Definition Classes
    Imports
  89. def isParseable(line: String): Boolean

    Definition Classes
    IMain
  90. lazy val isettings: ISettings

    interpreter settings

    interpreter settings

    Definition Classes
    IMain
  91. def languageSymbols: collection.immutable.List[Global.Symbol]

    Definition Classes
    Imports
  92. def languageWildcardHandlers: collection.immutable.List[(memberHandlers)#ImportHandler]

    Definition Classes
    Imports
  93. def languageWildcardSyms: List[Global.Symbol]

    Symbols whose contents are language-defined to be imported.

    Symbols whose contents are language-defined to be imported.

    Definition Classes
    Imports
  94. def languageWildcards: List[Global.Type]

    Definition Classes
    Imports
  95. def lastRequest: Request

    Definition Classes
    IMain
  96. def lastWarnings: List[(Global.Position, String)]

    Definition Classes
    IMain
  97. lazy val memberHandlers: MemberHandlers { val intp: ILoopInterpreter.this.type }

    Definition Classes
    IMain
  98. def methodSymbols: collection.immutable.List[Global.MethodSymbol]

    Definition Classes
    IMain
  99. def mostRecentLine: String

    Definition Classes
    IMain
  100. 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.

    Definition Classes
    IMain
  101. def namedDefinedTerms: collection.immutable.List[Global.TermName]

    Definition Classes
    IMain
  102. object naming extends Naming

    Definition Classes
    IMain
  103. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  104. def newCompiler(settings: Settings, reporter: Reporter): ReplGlobal

    Instantiate a compiler.

    Instantiate a compiler. Overridable.

    Attributes
    protected
    Definition Classes
    IMain
  105. def normalizeNonPublic(tp: Global.Type): Global.Type

    Definition Classes
    IMain
  106. final def notify(): Unit

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

    Definition Classes
    AnyRef
  108. def onlyTerms(xs: List[Global.Name]): collection.immutable.List[Global.TermName]

    Attributes
    protected
    Definition Classes
    IMain
  109. def onlyTypes(xs: List[Global.Name]): collection.immutable.List[Global.TypeName]

    Attributes
    protected
    Definition Classes
    IMain
  110. def optFlatName(id: String): Option[String]

    Definition Classes
    IMain
  111. val out: JPrintWriter

    Attributes
    protected
    Definition Classes
    IMain
  112. def parentClassLoader: ClassLoader

    Parent classloader.

    Parent classloader. Overridable.

    Attributes
    protected
    Definition Classes
    ILoopInterpreterIMain
  113. def parse(line: String): Option[List[Global.Tree]]

    Definition Classes
    IMain
  114. def pathToName(name: Global.Name): String

    Definition Classes
    IMain
  115. def pathToTerm(id: String): String

    Definition Classes
    IMain
  116. def pathToType(id: String): String

    Definition Classes
    IMain
  117. def prevRequestList: collection.immutable.List[Request]

    Definition Classes
    IMain
  118. def quietBind(p: NamedParam): Results.Result

    Definition Classes
    IMain
  119. def quietImport(ids: String*): Results.Result

    Definition Classes
    IMain
  120. def quietRun[T](code: String): Results.Result

    Definition Classes
    IMain
  121. def rebind(p: NamedParam): Results.Result

    Definition Classes
    IMain
  122. def recordRequest(req: Request): Unit

    Definition Classes
    IMain
  123. lazy val repllog: Logger

    Definition Classes
    IMain
  124. lazy val reporter: ReplReporter

    Definition Classes
    IMain
  125. def requestForIdent(line: String): Option[Request]

    Definition Classes
    IMain
  126. def requestForName(name: Global.Name): Option[Request]

    Definition Classes
    IMain
  127. def requestForReqId(id: Int): Option[Request]

    Definition Classes
    IMain
  128. def requestHistoryForName(name: Global.Name): List[Request]

    Definition Classes
    IMain
  129. def reset(): Unit

    Reset this interpreter, forgetting all user-specified requests.

    Reset this interpreter, forgetting all user-specified requests.

    Definition Classes
    IMain
  130. def resetClassLoader(): Unit

    Definition Classes
    IMain
  131. def runtimeClassAndTypeOfTerm(id: String): Option[(JClass, Global.Type)]

    Definition Classes
    IMain
  132. def runtimeTypeOfTerm(id: String): Global.Type

    Definition Classes
    IMain
  133. def sessionImportedSymbols: collection.immutable.List[Global.Symbol]

    Definition Classes
    Imports
  134. def sessionWildcards: List[Global.Type]

    Types which have been wildcard imported, such as: val x = "abc" ; import x.

    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.

    Definition Classes
    Imports
  135. def setContextClassLoader(): Unit

    Definition Classes
    IMain
  136. def setExecutionWrapper(code: String): Unit

    Definition Classes
    IMain
  137. def settings: Settings

    Definition Classes
    IMain
  138. def showCodeIfDebugging(code: String): Unit

    Definition Classes
    IMain
  139. def symbolDefString(sym: Global.Symbol): String

    Definition Classes
    IMain
  140. def symbolOfLine(code: String): Global.Symbol

    Definition Classes
    IMain
  141. def symbolOfTerm(id: String): Global.Symbol

    Definition Classes
    IMain
  142. def symbolOfType(id: String): Global.Symbol

    Definition Classes
    IMain
  143. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  144. def terms[T](implicit arg0: ClassTag[T]): Global.Symbol

    Definition Classes
    IMain
  145. def terms(name: String): Global.Symbol

    Definition Classes
    IMain
  146. def toString(): String

    Definition Classes
    AnyRef → Any
  147. def treesForRequestId(id: Int): List[Global.Tree]

    Definition Classes
    IMain
  148. def typeOfExpression(expr: String, silent: Boolean = true): Global.Type

    Definition Classes
    IMain
  149. def typeOfTerm(id: String): Global.Type

    Definition Classes
    IMain
  150. def types[T](implicit arg0: ClassTag[T]): Global.Symbol

    Definition Classes
    IMain
  151. def types(name: String): Global.Symbol

    Definition Classes
    IMain
  152. def unqualifiedIds: collection.immutable.List[String]

    Another entry point for tab-completion, ids in scope

    Another entry point for tab-completion, ids in scope

    Definition Classes
    IMain
  153. def valueOfTerm(id: String): Option[AnyRef]

    Definition Classes
    IMain
  154. val virtualDirectory: VirtualDirectory

    Leading with the eagerly evaluated.

    Leading with the eagerly evaluated.

    Definition Classes
    IMain
  155. def visibleTermNames: List[Global.Name]

    Definition Classes
    IMain
  156. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  159. def wildcardTypes: collection.immutable.List[Global.Type]

    Definition Classes
    Imports
  160. def withoutUnwrapping(op: ⇒ Unit): Unit

    Definition Classes
    IMain
  161. def withoutWarnings[T](body: ⇒ T): T

    Definition Classes
    IMain
  162. def [B](y: B): (ILoopInterpreter, B)

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to ArrowAssoc[ILoopInterpreter] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (iLoopInterpreter: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (iLoopInterpreter: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. lazy val compiler: global.type

    Definition Classes
    IMain
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use global for access to the compiler instance.

  2. def x: ILoopInterpreter

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to ArrowAssoc[ILoopInterpreter] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (iLoopInterpreter: ArrowAssoc[ILoopInterpreter]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  3. def x: ILoopInterpreter

    Implicit information
    This member is added by an implicit conversion from ILoopInterpreter to Ensuring[ILoopInterpreter] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (iLoopInterpreter: Ensuring[ILoopInterpreter]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from IMain

Inherited from Imports

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ILoopInterpreter to StringAdd

Inherited by implicit conversion any2stringfmt from ILoopInterpreter to StringFormat

Inherited by implicit conversion any2ArrowAssoc from ILoopInterpreter to ArrowAssoc[ILoopInterpreter]

Inherited by implicit conversion any2Ensuring from ILoopInterpreter to Ensuring[ILoopInterpreter]

Ungrouped