class DebuggerInterpreter extends Interpreter with DebuggerInterpreterBuiltins with DebuggerInterpreterHelpers
- Alphabetic
- By Inheritance
- DebuggerInterpreter
- DebuggerInterpreterHelpers
- DebuggerInterpreterBuiltins
- Interpreter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DebuggerInterpreter(rootScope: Scope = models.Scope.newRootScope(), out: PrintStream = Console.out, err: PrintStream = Console.err)
Type Members
-
type
E = Expression
- Definition Classes
- DebuggerInterpreterHelpers
-
type
I = Identifier
- Definition Classes
- DebuggerInterpreterHelpers
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bindFunction(name: String, parameters: Seq[String], function: (Map[String, Any]) ⇒ Any, documentation: String = null): Unit
Binds a function into the interpreter.
Binds a function into the interpreter.
- name
The name to associate with the function
- parameters
The collection of parameter names and documentation used by the function
- function
The implementation of the function
- documentation
Optional documentation for the function
- Definition Classes
- Interpreter
- def bindFunctionExpression(name: String, function: Function): Unit
-
def
bindFunctionWithParamDocs(name: String, parameters: Seq[(String, String)], function: (Map[String, Any]) ⇒ Any, documentation: String = null): Unit
Binds a function into the interpreter.
Binds a function into the interpreter.
- name
The name to associate with the function
- parameters
The collection of parameter names and documentation used by the function
- function
The implementation of the function
- documentation
Optional documentation for the function
- Definition Classes
- DebuggerInterpreter → Interpreter
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
lazy val
context: Context
Represents the context information about the interpreter state.
Represents the context information about the interpreter state.
- returns
The context of the interpreter
- Definition Classes
- DebuggerInterpreter → Interpreter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
err: PrintStream
- Attributes
- protected
-
final
def
eval(expression: Expression, scope: Scope): Expression
- Attributes
- protected
- def eval(expression: Expression): Expression
-
def
fillInArgs(args: Seq[(Identifier, Expression)], argNames: Seq[Identifier], scope: Scope): Map[Identifier, Expression]
- Definition Classes
- DebuggerInterpreterHelpers
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(name: String): Option[Any]
Retrieves the contents of a variable from the interpreter.
Retrieves the contents of a variable from the interpreter.
- name
The name of the variable whose contents to retrieve
- returns
Some value if the variable exists, otherwise None
- Definition Classes
- DebuggerInterpreter → Interpreter
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getExpression(name: String): Option[Expression]
-
def
getFunction(expression: Expression, scope: Scope): Function
- Definition Classes
- DebuggerInterpreterHelpers
-
def
getVariable(name: String, scope: Scope): Expression
- Definition Classes
- DebuggerInterpreterHelpers
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
interpret(code: String, scope: Scope): Try[AnyRef]
- Attributes
- protected
-
def
interpret(code: String): Try[AnyRef]
Interprets code and returns result of last top-level expression
Interprets code and returns result of last top-level expression
- code
The line of code to interpret
- returns
The result of parsing and evaluation, yielding the last evaluated line of code
- Definition Classes
- DebuggerInterpreter → Interpreter
-
def
interpretVerbosely(code: String): Try[Seq[Try[AnyRef]]]
Interprets code and returns collection of results for all top-level expressions
Interprets code and returns collection of results for all top-level expressions
- code
The line of code to interpret
- returns
The result of parsing and evaluation, yielding all evaluated lines of code
- Definition Classes
- DebuggerInterpreter → Interpreter
-
def
invokeOperator(name: String, scope: Scope, l: E, r: E): E
- Definition Classes
- DebuggerInterpreterHelpers
-
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
-
val
out: PrintStream
- Attributes
- protected
-
def
parse(code: String): Try[Seq[Expression]]
- Attributes
- protected
-
def
put(name: String, value: Any): Unit
Stores into the global namespace of the interpreter the provided value, creating a variable with the specified name.
Stores into the global namespace of the interpreter the provided value, creating a variable with the specified name.
- name
The name of the variable to contain the value
- value
The value to store
- Definition Classes
- DebuggerInterpreter → Interpreter
- def putExpression(name: String, value: Expression): Unit
-
val
rootScope: Scope
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toBaseValue(expression: Expression, scope: Scope): BaseValue
- Definition Classes
- DebuggerInterpreterHelpers
- Annotations
- @tailrec()
-
def
toBaseValue(expression: Expression): BaseValue
- Definition Classes
- DebuggerInterpreterHelpers
-
def
toEvalArgs(scope: Scope, l: E, r: E): Seq[(I, E)]
- Definition Classes
- DebuggerInterpreterHelpers
-
def
toExpression(value: Any): Try[Expression]
- Attributes
- protected
-
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( ... )