trait ScriptedRepl extends Repl
The interface used to expose the repl as a Java Script Engine
- Source
- Interface.scala
- Alphabetic
- By Inheritance
- ScriptedRepl
- Repl
- ReplCore
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
type
Request <: ReplRequest
- Definition Classes
- Repl
-
type
Setting = Settings.Setting
- Definition Classes
- Repl
-
type
SettingSet = Set[Setting]
- Definition Classes
- Repl
Abstract Value Members
- abstract def addBackReferences(req: Request): Either[String, Request]
-
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.
-
abstract
def
bind(p: NamedParam): Result
- Definition Classes
- Repl
-
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
- abstract def call(name: String, args: Any*): Either[Throwable, AnyRef]
-
abstract
def
classLoader: AbstractFileClassLoader
- Definition Classes
- Repl
-
abstract
def
classPathString: String
- Definition Classes
- Repl
-
abstract
def
clearExecutionWrapper(): Unit
- Definition Classes
- Repl
-
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
- abstract def compile(line: String, synthetic: Boolean): Either[Result, Request]
- abstract def compile(code: String): Boolean
-
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
-
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
-
abstract
def
definedTypes: List[String]
- Definition Classes
- Repl
- abstract def evalName: String
- abstract def evalPath: String
-
abstract
def
implicitsCommandInternal(line: String): (List[String], String)
- Definition Classes
- Repl
-
abstract
def
importsCommandInternal(tokens: List[String]): List[String]
- Definition Classes
- Repl
-
abstract
def
initializeCompiler(): Boolean
- Definition Classes
- Repl
-
abstract
def
initializeComplete: Boolean
- Definition Classes
- Repl
-
abstract
def
interpret(line: String, synthetic: Boolean): Result
- Definition Classes
- Repl
-
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 interpreter successfully, e.g. that there were no parse errors.
- Definition Classes
- ReplCore
-
abstract
def
isPackaged(line: String): Boolean
- Definition Classes
- Repl
-
abstract
def
kindCommandInternal(expr: String, verbose: Boolean): String
- Definition Classes
- Repl
-
abstract
def
lastWarnings: List[(Position, String)]
- Definition Classes
- Repl
-
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
-
abstract
def
namedDefinedTerms: List[String]
- Definition Classes
- Repl
-
abstract
def
namedParam[T](name: String, value: T)(implicit arg0: reflect.api.JavaUniverse.TypeTag[T], arg1: ClassTag[T]): NamedParam
- Definition Classes
- Repl
-
abstract
def
originalPath(name: String): String
- Definition Classes
- Repl
-
abstract
val
power: Power[StdReplVals]
- Definition Classes
- Repl
-
abstract
def
presentationCompile(cursor: Int, buf: String): Either[Result, PresentationCompilationResult]
- Definition Classes
- Repl
-
abstract
def
quietBind(p: NamedParam): Result
- Definition Classes
- Repl
-
abstract
def
quietRun(code: String): Result
- Definition Classes
- Repl
- abstract def recordRequest(req: Request): Unit
-
abstract
def
reporter: ReplReporter
- Definition Classes
- Repl
-
abstract
def
requestDefining(name: String): Option[ReplRequest]
- Definition Classes
- Repl
-
abstract
def
reset(): Unit
Reset this interpreter, forgetting all user-specified requests.
Reset this interpreter, forgetting all user-specified requests.
- Definition Classes
- Repl
-
abstract
def
setContextClassLoader(): Unit
Set the current Java "context" class loader to this interpreter's class loader
Set the current Java "context" class loader to this interpreter's class loader
- Definition Classes
- ReplCore
-
abstract
def
setExecutionWrapper(code: String): Unit
- Definition Classes
- Repl
-
abstract
val
settings: Settings
- Definition Classes
- Repl
-
abstract
def
showDirectory: String
- Definition Classes
- Repl
-
abstract
def
translateEnclosingClass(n: String): Option[String]
- Definition Classes
- Repl
-
abstract
def
translatePath(path: String): Option[String]
- Definition Classes
- Repl
-
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
-
abstract
def
updateSettings(arguments: List[String]): Boolean
- Definition Classes
- Repl
-
abstract
def
userSetSettings: SettingSet
- Definition Classes
- Repl
-
abstract
def
valueOfTerm(id: String): Option[Any]
- Definition Classes
- Repl
-
abstract
def
visibleSettings: SettingSet
- Definition Classes
- Repl
-
abstract
def
withLabel[A](temp: String)(body: ⇒ A): A
- Definition Classes
- Repl
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to any2stringadd[ScriptedRepl] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ScriptedRepl, B)
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to ArrowAssoc[ScriptedRepl] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
beQuietDuring(body: ⇒ Unit): Unit
The reporter will not print results during execution of
body
. -
def
bindValue(name: String, value: Any): Result
Bind a specified
name
to a specifiedvalue
.Bind a specified
name
to a specifiedvalue
. The type is derived from the run-time class of the value.- Definition Classes
- ReplCore
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (ScriptedRepl) ⇒ Boolean, msg: ⇒ Any): ScriptedRepl
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to Ensuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ScriptedRepl) ⇒ Boolean): ScriptedRepl
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to Ensuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ScriptedRepl
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to Ensuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ScriptedRepl
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to Ensuring[ScriptedRepl] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to StringFormat[ScriptedRepl] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (ScriptedRepl, B)
- Implicit
- This member is added by an implicit conversion from ScriptedRepl to ArrowAssoc[ScriptedRepl] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler and reflection APIs.