Trait

org.scaladebugger.language.interpreters

Interpreter

Related Doc: package interpreters

Permalink

trait Interpreter extends AnyRef

Represents the standard interface for an interpreter.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interpreter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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

  2. abstract def context: Context

    Permalink

    Represents the contextual information about the interpreter at a given point in time.

    Represents the contextual information about the interpreter at a given point in time.

    returns

    The context of the interpreter

  3. abstract 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

  4. abstract def interpret(code: String): Try[AnyRef]

    Permalink

    Interprets a segment code by parsing and evaluating it.

    Interprets a segment code by parsing and evaluating it.

    code

    The line of code to interpret

    returns

    The result of parsing and evaluation, yielding the last evaluated line of code

  5. abstract def interpretVerbosely(code: String): Try[Seq[Try[AnyRef]]]

    Permalink

    Interprets a segment of code by parsing and evaluating it.

    Interprets a segment of code by parsing and evaluating it.

    code

    The line of code to interpret

    returns

    The result of parsing and evaluation, yielding all evaluated lines of code

  6. abstract 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

Concrete 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

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped