trait ScriptedRepl extends Repl

The interface used to expose the repl as a Java Script Engine

Source
Interface.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScriptedRepl
  2. Repl
  3. ReplCore
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Request <: ReplRequest
    Definition Classes
    Repl
  2. type Setting = Settings.Setting
    Definition Classes
    Repl

Abstract Value Members

  1. abstract def addBackReferences(req: Request): Either[String, Request]
  2. abstract 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.

    Definition Classes
    Repl
    Note

    Currently only supports jars, not directories.

  3. abstract def bind(p: NamedParam): Result
    Definition Classes
    Repl
  4. abstract def bind(name: String, boundType: String, value: Any, modifiers: List[String] = Nil): 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
    ReplCore
  5. abstract def call(name: String, args: Any*): Either[Throwable, AnyRef]
  6. abstract def classLoader: AbstractFileClassLoader
    Definition Classes
    Repl
  7. abstract def classPathString: String
    Definition Classes
    Repl
  8. abstract def clearExecutionWrapper(): Unit
    Definition Classes
    Repl
  9. abstract 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
    Repl
  10. abstract def compile(line: String, synthetic: Boolean): Either[Result, Request]
  11. abstract def compile(code: String): Boolean
  12. abstract 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
    Repl
  13. abstract def compileString(code: String): Boolean

    Compile a string.

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

    Definition Classes
    Repl
  14. abstract def compilerClasspath: Seq[URL]
    Definition Classes
    Repl
  15. abstract def definedTypes: List[String]
    Definition Classes
    Repl
  16. abstract def evalName: String
  17. abstract def evalPath: String
  18. abstract def implicitsCommandInternal(line: String): (List[String], String)
    Definition Classes
    Repl
  19. abstract def importsCommandInternal(tokens: List[String]): List[String]
    Definition Classes
    Repl
  20. abstract def initializeCompiler(): Boolean
    Definition Classes
    Repl
  21. abstract def initializeComplete: Boolean
    Definition Classes
    Repl
  22. abstract def interpret(line: String, synthetic: Boolean): Result
    Definition Classes
    Repl
  23. abstract def interpret(line: String): 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 interpreted successfully, e.g. that there were no parse errors.

    Definition Classes
    ReplCore
  24. abstract def interpretFinally(line: String): Result
    Definition Classes
    Repl
  25. abstract def isPackaged(line: String): Boolean
    Definition Classes
    Repl
  26. abstract def kindCommandInternal(expr: String, verbose: Boolean): String
    Definition Classes
    Repl
  27. abstract def lastWarnings: List[(Position, String)]
    Definition Classes
    Repl
  28. abstract 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
    Repl
  29. abstract def namedDefinedTerms: List[String]
    Definition Classes
    Repl
  30. abstract def namedParam[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): NamedParam
    Definition Classes
    Repl
  31. abstract def originalPath(name: String): String
    Definition Classes
    Repl
  32. abstract def outputDir: AbstractFile
    Definition Classes
    Repl
  33. abstract def parseString(line: String): Result

    TODO resolve scan, parse, compile, interpret, which just indicate how much work to do.

    TODO resolve scan, parse, compile, interpret, which just indicate how much work to do.

    Definition Classes
    Repl
  34. abstract val power: Power[StdReplVals]
    Definition Classes
    Repl
  35. abstract def presentationCompile(cursor: Int, buf: String): Either[Result, PresentationCompilationResult]
    Definition Classes
    Repl
  36. abstract def quietBind(p: NamedParam): Result
    Definition Classes
    Repl
  37. abstract def quietRun(code: String): Result
    Definition Classes
    Repl
  38. abstract def recordRequest(req: Request): Unit
  39. abstract def reporter: ReplReporter
    Definition Classes
    Repl
  40. abstract def requestDefining(name: String): Option[ReplRequest]
    Definition Classes
    Repl
  41. abstract def reset(): Unit

    Reset this interpreter, forgetting all user-specified requests.

    Reset this interpreter, forgetting all user-specified requests.

    Definition Classes
    Repl
  42. abstract def setExecutionWrapper(code: String): Unit
    Definition Classes
    Repl
  43. abstract val settings: Settings
    Definition Classes
    Repl
  44. abstract def showDirectory: String
    Definition Classes
    Repl
  45. abstract def tokenize(line: String): List[TokenData]
    Definition Classes
    Repl
  46. abstract def translateEnclosingClass(n: String): Option[String]
    Definition Classes
    Repl
  47. abstract def translatePath(path: String): Option[String]
    Definition Classes
    Repl
  48. abstract def typeCommandInternal(expr: String, verbose: Boolean): (String, String)

    TODO - -n normalize -l label with case class parameter names -c complete - leave nothing out

    TODO - -n normalize -l label with case class parameter names -c complete - leave nothing out

    Definition Classes
    Repl
  49. abstract def updateSettings(arguments: List[String]): Boolean
    Definition Classes
    Repl
  50. abstract def userSetSettings: List[Setting]
    Definition Classes
    Repl
  51. abstract def valueOfTerm(id: String): Option[Any]
    Definition Classes
    Repl
  52. abstract def visibleSettings: List[Setting]
    Definition Classes
    Repl
  53. abstract def withLabel[A](temp: String)(body: => A): A
    Definition Classes
    Repl
  54. abstract def withSuppressedSettings(body: => Unit): Unit
    Definition Classes
    Repl

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toany2stringadd[ScriptedRepl] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScriptedRepl, B)
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toArrowAssoc[ScriptedRepl] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def beQuietDuring(body: => Unit): Unit

    The reporter will not print results during execution of body.

    The reporter will not print results during execution of body.

    Definition Classes
    ReplReplCore
  8. def bindValue(name: String, value: Any): Result

    Bind a specified name to a specified value.

    Bind a specified name to a specified value. The type is derived from the run-time class of the value.

    Definition Classes
    ReplCore
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def ensuring(cond: (ScriptedRepl) => Boolean, msg: => Any): ScriptedRepl
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toEnsuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ScriptedRepl) => Boolean): ScriptedRepl
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toEnsuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): ScriptedRepl
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toEnsuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ScriptedRepl
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toEnsuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toStringFormat[ScriptedRepl] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. final def setContextClassLoader(): Unit
    Definition Classes
    ReplCore
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.0) The thread context classloader is now set and restored around execution of REPL line, this method is now a no-op.

  3. def [B](y: B): (ScriptedRepl, B)
    Implicit
    This member is added by an implicit conversion from ScriptedRepl toArrowAssoc[ScriptedRepl] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Repl

Inherited from ReplCore

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromScriptedRepl to any2stringadd[ScriptedRepl]

Inherited by implicit conversion StringFormat fromScriptedRepl to StringFormat[ScriptedRepl]

Inherited by implicit conversion Ensuring fromScriptedRepl to Ensuring[ScriptedRepl]

Inherited by implicit conversion ArrowAssoc fromScriptedRepl to ArrowAssoc[ScriptedRepl]

Ungrouped