org.apache.spark.repl.SparkILoop

SparkILoopInterpreter

class SparkILoopInterpreter extends SparkIMain

Self Type
SparkILoopInterpreter
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SparkILoopInterpreter
  2. SparkIMain
  3. Logging
  4. SparkImports
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkILoopInterpreter()

Type Members

  1. class ReadEvalPrint extends AnyRef

    Here is where we:

  2. implicit class ReplTypeOps extends AnyRef

    Definition Classes
    SparkIMain
  3. class Request extends AnyRef

    One line of code submitted by the user for interpretation

  4. case class SparkComputedImports(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.

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. val SPARK_DEBUG_REPL: Boolean

    Definition Classes
    SparkIMain
  7. def addImports(ids: String*): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  8. def aliasForType(path: String): Option[String]

    Parse the ScalaSig to find type aliases

    Parse the ScalaSig to find type aliases

    Definition Classes
    SparkIMain
  9. def allDefHandlers: List[(memberHandlers)#MemberDefHandler]

    Definition Classes
    SparkIMain
  10. def allDefSymbols: List[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkIMain
  11. def allDefinedNames: List[scala.tools.nsc.Global.Name]

    Definition Classes
    SparkIMain
  12. def allHandlers: List[(memberHandlers)#MemberHandler]

    Definition Classes
    SparkIMain
  13. def allImplicits: List[scala.tools.nsc.Global.Name { ... /* 5 definitions in type refinement */ }]

    Definition Classes
    SparkIMain
  14. def allImportedNames: List[scala.tools.nsc.Global.Name]

    Definition Classes
    SparkImports
  15. def allSeenTypes: List[String]

    Definition Classes
    SparkIMain
  16. def apply[T](implicit arg0: ClassTag[T]): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  17. def apply(name: String): scala.tools.nsc.Global.Symbol

    Translate a repl-defined identifier into a Symbol.

    Translate a repl-defined identifier into a Symbol.

    Definition Classes
    SparkIMain
  18. final def asInstanceOf[T0]: T0

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

    Temporarily be quiet

    Temporarily be quiet

    Definition Classes
    SparkIMain
  20. def beSilentDuring[T](operation: ⇒ T): T

    Definition Classes
    SparkIMain
  21. def bind[T](name: String, value: T)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  22. def bind(p: NamedParam): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  23. def bind(name: String, boundType: String, value: Any, modifiers: List[String] = Nil): scala.tools.nsc.interpreter.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
    SparkIMain
  24. def bindSyntheticValue(x: Any): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  25. def bindValue(name: String, x: Any): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  26. def bindValue(x: Any): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  27. def classLoader: AbstractFileClassLoader

    Definition Classes
    SparkIMain
  28. def classOfTerm(id: String): Option[JClass]

    Definition Classes
    SparkIMain
  29. val classServer: HttpServer

    Definition Classes
    SparkIMain
  30. def classSymbols: List[scala.tools.nsc.Global.ClassSymbol]

    Definition Classes
    SparkIMain
  31. def cleanMemberDecl(owner: scala.tools.nsc.Global.Symbol, member: scala.tools.nsc.Global.Name): scala.tools.nsc.Global.Type

    Definition Classes
    SparkIMain
  32. def clearExecutionWrapper(): Unit

    Definition Classes
    SparkIMain
  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
    SparkIMain
  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
    SparkIMain
  36. def compileSourcesKeepingRun(sources: SourceFile*): (Boolean, Run)

    Definition Classes
    SparkIMain
  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
    SparkIMain
  38. def compilerClasspath: Seq[URL]

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

    Definition Classes
    SparkIMain
  40. object deconstruct extends StructuredTypeStrings

    Definition Classes
    SparkIMain
  41. def definedSymbolList: List[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkIMain
  42. def definedSymbols: Set[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkIMain
  43. def definedTerms: List[scala.tools.nsc.Global.TermName]

    Definition Classes
    SparkIMain
  44. def definedTypes: List[scala.tools.nsc.Global.TypeName]

    Definition Classes
    SparkIMain
  45. def definitionForName(name: scala.tools.nsc.Global.Name): Option[(memberHandlers)#MemberHandler]

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

    Definition Classes
    SparkIMain
  47. def directBind(p: NamedParam): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  48. def directBind(name: String, boundType: String, value: Any): scala.tools.nsc.interpreter.Results.Result

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

    Definition Classes
    SparkIMain
  50. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  52. def executionWrapper: String

    Definition Classes
    SparkIMain
  53. object exprTyper extends SparkExprTyper

    Definition Classes
    SparkIMain
  54. def finalize(): Unit

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

    Definition Classes
    SparkIMain
  56. lazy val formatting: Formatting

    Definition Classes
    SparkILoopInterpreterSparkIMain
  57. 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
    SparkIMain
  58. final def getClass(): Class[_]

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

    Definition Classes
    SparkIMain
  60. lazy val global: Global

    the public, go through the future compiler

    the public, go through the future compiler

    Definition Classes
    SparkIMain
  61. def handleTermRedefinition(name: scala.tools.nsc.Global.TermName, old: Request, req: Request): Unit

    Definition Classes
    SparkIMain
  62. def handleTypeRedefinition(name: scala.tools.nsc.Global.TypeName, old: Request, req: Request): Unit

    Stubs for work in progress.

    Stubs for work in progress.

    Definition Classes
    SparkIMain
  63. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  64. def implicitSymbols: List[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkImports
  65. def implicitSymbolsBySource: List[(scala.tools.nsc.Global.Symbol, List[scala.tools.nsc.Global.Symbol])]

    Definition Classes
    SparkImports
  66. def importHandlers: List[(memberHandlers)#ImportHandler]

    Definition Classes
    SparkIMain
  67. def importedSymbols: List[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkImports
  68. def importedSymbolsBySource: List[(scala.tools.nsc.Global.Symbol, List[scala.tools.nsc.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
    SparkImports
  69. def importedTermNamed(name: String): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkImports
  70. def importedTermSymbols: List[scala.tools.nsc.Global.TermSymbol]

    Definition Classes
    SparkImports
  71. def importedTerms: List[scala.tools.nsc.Global.TermName]

    Definition Classes
    SparkImports
  72. def importedTypeSymbols: List[scala.tools.nsc.Global.TypeSymbol]

    Definition Classes
    SparkImports
  73. def importedTypes: List[scala.tools.nsc.Global.TypeName]

    Definition Classes
    SparkImports
  74. def importsCode(wanted: Set[scala.tools.nsc.Global.Name]): SparkComputedImports

    Attributes
    protected
    Definition Classes
    SparkImports
  75. def initialize(postInitSignal: ⇒ Unit): Unit

    Definition Classes
    SparkIMain
  76. def initializeSynchronous(): Unit

    Definition Classes
    SparkIMain
  77. def interpret(line: String, synthetic: Boolean): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  78. def interpret(line: String): scala.tools.nsc.interpreter.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
    SparkIMain
  79. def interpretSynthetic(line: String): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  80. def isInitializeComplete: Boolean

    Definition Classes
    SparkIMain
  81. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  82. def isNoImports: Boolean

    Definition Classes
    SparkImports
  83. def isNoPredef: Boolean

    Definition Classes
    SparkImports
  84. def isParseable(line: String): Boolean

    Definition Classes
    SparkIMain
  85. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  86. lazy val isettings: SparkISettings

    interpreter settings

    interpreter settings

    Definition Classes
    SparkIMain
  87. def languageSymbols: List[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkImports
  88. def languageWildcardHandlers: List[(memberHandlers)#ImportHandler]

    Definition Classes
    SparkImports
  89. def languageWildcardSyms: List[scala.tools.nsc.Global.Symbol]

    Symbols whose contents are language-defined to be imported.

    Symbols whose contents are language-defined to be imported.

    Definition Classes
    SparkImports
  90. def languageWildcards: List[scala.tools.nsc.Global.Type]

    Definition Classes
    SparkImports
  91. def lastRequest: Request

    Definition Classes
    SparkIMain
  92. def lastWarnings: List[(scala.tools.nsc.Global.Position, String)]

    Definition Classes
    SparkIMain
  93. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  94. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  95. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  96. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  97. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  98. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  99. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  100. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  101. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  102. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  103. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  104. lazy val memberHandlers: SparkMemberHandlers { val intp: SparkILoopInterpreter.this.type }

    Definition Classes
    SparkIMain
  105. def methodSymbols: List[scala.tools.nsc.Global.MethodSymbol]

    Definition Classes
    SparkIMain
  106. def mostRecentLine: String

    Definition Classes
    SparkIMain
  107. 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
    SparkIMain
  108. def namedDefinedTerms: List[scala.tools.nsc.Global.TermName]

    Definition Classes
    SparkIMain
  109. object naming extends Naming

    Definition Classes
    SparkIMain
  110. final def ne(arg0: AnyRef): Boolean

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

    Instantiate a compiler.

    Instantiate a compiler. Overridable.

    Attributes
    protected
    Definition Classes
    SparkIMain
  112. def normalizeNonPublic(tp: scala.tools.nsc.Global.Type): scala.tools.nsc.Global.Type

    Definition Classes
    SparkIMain
  113. final def notify(): Unit

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

    Definition Classes
    AnyRef
  115. def onlyTerms(xs: List[scala.tools.nsc.Global.Name]): List[scala.tools.nsc.Global.TermName]

    Attributes
    protected
    Definition Classes
    SparkIMain
  116. def onlyTypes(xs: List[scala.tools.nsc.Global.Name]): List[scala.tools.nsc.Global.TypeName]

    Attributes
    protected
    Definition Classes
    SparkIMain
  117. def optFlatName(id: String): Option[String]

    Definition Classes
    SparkIMain
  118. val out: JPrintWriter

    Definition Classes
    SparkIMain
  119. val outputDir: File

    Local directory to save .

    Local directory to save .class files too

    Definition Classes
    SparkIMain
  120. def parentClassLoader: ClassLoader

    Parent classloader.

    Parent classloader. Overridable.

    Attributes
    protected
    Definition Classes
    SparkILoopInterpreterSparkIMain
  121. def parse(line: String): Option[List[scala.tools.nsc.Global.Tree]]

    Definition Classes
    SparkIMain
  122. def pathToName(name: scala.tools.nsc.Global.Name): String

    Definition Classes
    SparkIMain
  123. def pathToTerm(id: String): String

    Definition Classes
    SparkIMain
  124. def pathToType(id: String): String

    Definition Classes
    SparkIMain
  125. def prevRequestList: List[Request]

    Definition Classes
    SparkIMain
  126. var printResults: Boolean

    Definition Classes
    SparkIMain
  127. def quietBind(p: NamedParam): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  128. def quietImport(ids: String*): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  129. def quietRun[T](code: String): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  130. def rebind(p: NamedParam): scala.tools.nsc.interpreter.Results.Result

    Definition Classes
    SparkIMain
  131. def recordRequest(req: Request): Unit

    Definition Classes
    SparkIMain
  132. lazy val repllog: Logger

    Definition Classes
    SparkIMain
  133. def replwarn(msg: ⇒ String): Unit

    Definition Classes
    SparkIMain
  134. lazy val reporter: ConsoleReporter

    Definition Classes
    SparkIMain
  135. def requestForIdent(line: String): Option[Request]

    Definition Classes
    SparkIMain
  136. def requestForName(name: scala.tools.nsc.Global.Name): Option[Request]

    Definition Classes
    SparkIMain
  137. def requestForReqId(id: Int): Option[Request]

    Definition Classes
    SparkIMain
  138. def requestHistoryForName(name: scala.tools.nsc.Global.Name): List[Request]

    Definition Classes
    SparkIMain
  139. def reset(): Unit

    Reset this interpreter, forgetting all user-specified requests.

    Reset this interpreter, forgetting all user-specified requests.

    Definition Classes
    SparkIMain
  140. def resetClassLoader(): Unit

    Definition Classes
    SparkIMain
  141. def runtimeClassAndTypeOfTerm(id: String): Option[(JClass, scala.tools.nsc.Global.Type)]

    Definition Classes
    SparkIMain
  142. def runtimeTypeOfTerm(id: String): scala.tools.nsc.Global.Type

    Definition Classes
    SparkIMain
  143. def sessionImportedSymbols: List[scala.tools.nsc.Global.Symbol]

    Definition Classes
    SparkImports
  144. def sessionWildcards: List[scala.tools.nsc.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
    SparkImports
  145. def setContextClassLoader(): Unit

    Definition Classes
    SparkIMain
  146. def setExecutionWrapper(code: String): Unit

    Definition Classes
    SparkIMain
  147. def settings: Settings

    Definition Classes
    SparkIMain
  148. def showCodeIfDebugging(code: String): Unit

    Definition Classes
    SparkIMain
  149. def symbolDefString(sym: scala.tools.nsc.Global.Symbol): String

    Definition Classes
    SparkIMain
  150. def symbolOfLine(code: String): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  151. def symbolOfTerm(id: String): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  152. def symbolOfType(id: String): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  153. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  154. def terms[T](implicit arg0: ClassTag[T]): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  155. def terms(name: String): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  156. def toString(): String

    Definition Classes
    AnyRef → Any
  157. var totalSilence: Boolean

    Definition Classes
    SparkIMain
  158. def treesForRequestId(id: Int): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    SparkIMain
  159. def typeOfExpression(expr: String, silent: Boolean = true): scala.tools.nsc.Global.Type

    Definition Classes
    SparkIMain
  160. def typeOfTerm(id: String): scala.tools.nsc.Global.Type

    Definition Classes
    SparkIMain
  161. def types[T](implicit arg0: ClassTag[T]): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  162. def types(name: String): scala.tools.nsc.Global.Symbol

    Definition Classes
    SparkIMain
  163. def unqualifiedIds: List[String]

    Another entry point for tab-completion, ids in scope

    Another entry point for tab-completion, ids in scope

    Definition Classes
    SparkIMain
  164. def valueOfTerm(id: String): Option[AnyRef]

    Definition Classes
    SparkIMain
  165. val virtualDirectory: PlainFile

    Definition Classes
    SparkIMain
  166. def visibleTermNames: List[scala.tools.nsc.Global.Name]

    Definition Classes
    SparkIMain
  167. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  170. def wildcardTypes: List[scala.tools.nsc.Global.Type]

    Definition Classes
    SparkImports
  171. def withoutUnwrapping(op: ⇒ Unit): Unit

    Definition Classes
    SparkIMain
  172. def withoutWarnings[T](body: ⇒ T): T

    Definition Classes
    SparkIMain

Deprecated Value Members

  1. lazy val compiler: global.type

    Definition Classes
    SparkIMain
    Annotations
    @deprecated
    Deprecated

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

Inherited from SparkIMain

Inherited from Logging

Inherited from SparkImports

Inherited from AnyRef

Inherited from Any

Ungrouped