org.scaladebugger.tool.frontend

VirtualTerminal

class VirtualTerminal extends Terminal

Represents a terminal that reads from input provided on a queue and outputs results to a different queue.

Linear Supertypes
Terminal, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. VirtualTerminal
  2. Terminal
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VirtualTerminal(inputQueue: BlockingQueue[String] = ..., outputQueue: BlockingQueue[String] = ..., waitTime: Long = ...)

    inputQueue

    The queue used for new input to the terminal

    outputQueue

    The queue used for new output from the terminal

    waitTime

    The maximum time to wait for retrieving input as well as wait to add new input (in milliseconds); if negative, will wait indefinitely

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 clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  12. def getPromptFunction: () ⇒ String

    Returns the function used to generate prompts.

    Returns the function used to generate prompts.

    returns

    The prompt function

    Definition Classes
    Terminal
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. def history: HistoryManager

    Returns the manager used to keep track of this terminal's history.

    Returns the manager used to keep track of this terminal's history.

    returns

    Definition Classes
    VirtualTerminalTerminal
  15. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  17. def newInputLine(text: String): Unit

    Adds a new line of input to be fed into the terminal.

    Adds a new line of input to be fed into the terminal.

    text

    The new line of text

    Annotations
    @throws( ... )
    Exceptions thrown
    IllegalStateException

    When maximum output queue capacity has been reached and is full for longer than the maximum wait time

  18. def nextOutputLine(waitTime: Long = 0): Option[String]

    Retrieves the next line of output from the terminal.

    Retrieves the next line of output from the terminal.

    waitTime

    The maximum time to wait for new output in milliseconds, or -1 if waiting indefinitely

    returns

    Some new line of output from the terminal if output exists, otherwise None

  19. final def notify(): Unit

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

    Definition Classes
    AnyRef
  21. def prompt(): String

    Retrieves the prompt by invoking the prompt function.

    Retrieves the prompt by invoking the prompt function.

    returns

    The new string prompt

    Definition Classes
    Terminal
  22. def readLine(): Option[String]

    Reads the next line from the terminal.

    Reads the next line from the terminal.

    returns

    Some line if found, otherwise None if the maximum time allowed for new input has been exceeded

    Definition Classes
    VirtualTerminalTerminal
  23. def setPrompt(prompt: String): Unit

    Sets a static prompt for the terminal.

    Sets a static prompt for the terminal.

    prompt

    The static prompt string

    Definition Classes
    Terminal
  24. def setPromptFunction(promptFunc: () ⇒ String): Unit

    Sets a dynamic prompt using a prompt function.

    Sets a dynamic prompt using a prompt function.

    promptFunc

    The new prompt function

    Definition Classes
    Terminal
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def write(text: String): Unit

    Writes the provided text to the terminal.

    Writes the provided text to the terminal.

    text

    The text to write out to the terminal

    Definition Classes
    VirtualTerminalTerminal
    Annotations
    @throws( ... )
    Exceptions thrown
    IllegalStateException

    When the output queue's capacity has been reached

  31. def writeLine(text: String): Unit

    Writes the provided text to the terminal and ends with a newline character.

    Writes the provided text to the terminal and ends with a newline character.

    text

    The text to write out to the terminal

    Definition Classes
    Terminal

Inherited from Terminal

Inherited from AnyRef

Inherited from Any

Ungrouped