Class/Object

org.scaladebugger.tool.frontend

VirtualTerminal

Related Docs: object VirtualTerminal | package frontend

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

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

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

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

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

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

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

    Permalink

    Returns the function used to generate prompts.

    Returns the function used to generate prompts.

    returns

    The prompt function

    Definition Classes
    Terminal
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def history: HistoryManager

    Permalink

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

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

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

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

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

    Permalink

    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

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

    Permalink

    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

  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. def prompt(): String

    Permalink

    Retrieves the prompt by invoking the prompt function.

    Retrieves the prompt by invoking the prompt function.

    returns

    The new string prompt

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

    Permalink

    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
  21. def setPrompt(prompt: String): Unit

    Permalink

    Sets a static prompt for the terminal.

    Sets a static prompt for the terminal.

    prompt

    The static prompt string

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

    Permalink

    Sets a dynamic prompt using a prompt function.

    Sets a dynamic prompt using a prompt function.

    promptFunc

    The new prompt function

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

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

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

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

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

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

    Permalink

    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

  29. def writeLine(text: String): Unit

    Permalink

    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