org.scaladebugger.language.interpreters

DebuggerInterpreter

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. type E = Expression

    Definition Classes
    DebuggerInterpreterHelpers
  2. type I = Identifier

    Definition Classes
    DebuggerInterpreterHelpers

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. final def asInstanceOf[T0]: T0

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

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

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

    Represents the context information about the interpreter state.

    Represents the context information about the interpreter state.

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

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

    Definition Classes
    AnyRef → Any
  14. val err: PrintStream

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

    Attributes
    protected
  16. def eval(expression: Expression): Expression

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

    Definition Classes
    DebuggerInterpreterHelpers
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. 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
    DebuggerInterpreterInterpreter
  20. final def getClass(): Class[_]

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

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

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

    Definition Classes
    DebuggerInterpreterHelpers
  24. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  31. final def notify(): Unit

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

    Definition Classes
    AnyRef
  33. val out: PrintStream

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

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

  37. val rootScope: Scope

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

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

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

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

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

    Attributes
    protected
  43. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Interpreter

Inherited from AnyRef

Inherited from Any

Ungrouped