Class

org.scaladebugger.language.interpreters

DebuggerInterpreter

Related Doc: package interpreters

Permalink

class DebuggerInterpreter extends Interpreter with DebuggerInterpreterBuiltins with DebuggerInterpreterHelpers

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DebuggerInterpreter
  2. DebuggerInterpreterHelpers
  3. DebuggerInterpreterBuiltins
  4. Interpreter
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DebuggerInterpreter(rootScope: Scope = models.Scope.newRootScope(), out: PrintStream = Console.out, err: PrintStream = Console.err)

    Permalink

Type Members

  1. type E = Expression

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  2. type I = Identifier

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bindFunction(name: String, parameters: Seq[String], function: (Map[String, Any]) ⇒ Any, documentation: String = null): Unit

    Permalink

    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
  6. def bindFunctionExpression(name: String, function: Function): Unit

    Permalink
  7. def bindFunctionWithParamDocs(name: String, parameters: Seq[(String, String)], function: (Map[String, Any]) ⇒ Any, documentation: String = null): Unit

    Permalink

    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
    DebuggerInterpreterInterpreter
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. lazy val context: Context

    Permalink

    Represents the context information about the interpreter state.

    Represents the context information about the interpreter state.

    returns

    The context of the interpreter

    Definition Classes
    DebuggerInterpreterInterpreter
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. val err: PrintStream

    Permalink
    Attributes
    protected
  13. final def eval(expression: Expression, scope: Scope): Expression

    Permalink
    Attributes
    protected
  14. def eval(expression: Expression): Expression

    Permalink
  15. def fillInArgs(args: Seq[(Identifier, Expression)], argNames: Seq[Identifier], scope: Scope): Map[Identifier, Expression]

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def get(name: String): Option[Any]

    Permalink

    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
    DebuggerInterpreterInterpreter
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getExpression(name: String): Option[Expression]

    Permalink
  20. def getFunction(expression: Expression, scope: Scope): Function

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  21. def getVariable(name: String, scope: Scope): Expression

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def interpret(code: String, scope: Scope): Try[AnyRef]

    Permalink
    Attributes
    protected
  24. def interpret(code: String): Try[AnyRef]

    Permalink

    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
    DebuggerInterpreterInterpreter
  25. def interpretVerbosely(code: String): Try[Seq[Try[AnyRef]]]

    Permalink

    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
    DebuggerInterpreterInterpreter
  26. def invokeOperator(name: String, scope: Scope, l: E, r: E): E

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. val out: PrintStream

    Permalink
    Attributes
    protected
  32. def parse(code: String): Try[Seq[Expression]]

    Permalink
    Attributes
    protected
  33. def put(name: String, value: Any): Unit

    Permalink

    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
    DebuggerInterpreterInterpreter
  34. def putExpression(name: String, value: Expression): Unit

    Permalink
  35. val rootScope: Scope

    Permalink
    Attributes
    protected
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. final def toBaseValue(expression: Expression, scope: Scope): BaseValue

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
    Annotations
    @tailrec()
  38. def toBaseValue(expression: Expression): BaseValue

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  39. def toEvalArgs(scope: Scope, l: E, r: E): Seq[(I, E)]

    Permalink
    Definition Classes
    DebuggerInterpreterHelpers
  40. def toExpression(value: Any): Try[Expression]

    Permalink
    Attributes
    protected
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Interpreter

Inherited from AnyRef

Inherited from Any

Ungrouped