All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.tools.debug.RemoteThread

java.lang.Object
   |
   +----sun.tools.debug.RemoteValue
           |
           +----sun.tools.debug.RemoteObject
                   |
                   +----sun.tools.debug.RemoteThread

public class RemoteThread
extends RemoteObject
The RemoteThread class allows access to a thread in a remote Java interpreter.

See Also:
RemoteDebugger, RemoteThreadGroup

Method Index

 o cont()
Resume this thread from a breakpoint, unless it previously suspended.
 o down(int)
Change the current stackframe to be one or more frames lower (as in, toward the current program counter).
 o dumpStack()
Dump the stack.
 o getCurrentFrame()
Get the current stack frame.
 o getCurrentFrameIndex()
Return the current stackframe index
 o getName()
Return the name of the thread.
 o getStackVariable(String)
Return a stack variable from the current stackframe.
 o getStackVariables()
Return the arguments and local variable from the current stackframe.
 o getStatus()
Return the thread status description
 o isSuspended()
Return whether this thread is suspended.
 o next()
Continue execution of this thread to the next line, but don't step into a method call.
 o resetCurrentFrameIndex()
Reset the current stackframe
 o resume()
Resume execution of this thread.
 o setCurrentFrameIndex(int)
Set the current stackframe index
 o step(boolean)
Continue execution of this thread to the next instruction or line.
 o stop()
Stop the remote thread.
 o suspend()
Suspend execution of this thread.
 o up(int)
Change the current stackframe to be one or more frames higher (as in, away from the current program counter).

Methods

 o getName
    method getName() returns String public     Signals Exception
Return the name of the thread.

 o getCurrentFrameIndex
    method getCurrentFrameIndex() returns int public     
Return the current stackframe index

 o setCurrentFrameIndex
    method setCurrentFrameIndex(iFrame=int)  public     
Set the current stackframe index

 o resetCurrentFrameIndex
    method resetCurrentFrameIndex()  public     
Reset the current stackframe

 o up
    method up(nFrames=int)  public     Signals Exception
Change the current stackframe to be one or more frames higher (as in, away from the current program counter).

Parameters:
nFrames - the number of stackframes
Throws: IllegalAccessError
when the thread isn't suspended or waiting at a breakpoint
Throws: ArrayIndexOutOfBoundsException
when the requested frame is beyond the stack boundary
 o down
    method down(nFrames=int)  public     Signals Exception
Change the current stackframe to be one or more frames lower (as in, toward the current program counter).

Parameters:
nFrames - the number of stackframes
Throws: IllegalAccessError
when the thread isn't suspended or waiting at a breakpoint
Throws: ArrayIndexOutOfBoundsException
when the requested frame is beyond the stack boundary
 o getStatus
    method getStatus() returns String public     Signals Exception
Return the thread status description

 o dumpStack
    method dumpStack() returns RemoteStackFrame[] public     Signals Exception
Dump the stack.

 o getCurrentFrame
    method getCurrentFrame() returns RemoteStackFrame public     Signals Exception
Get the current stack frame.

Throws: IllegalAccessError
when the thread isn't suspended or waiting at a breakpoint
 o suspend
    method suspend()  public     Signals Exception
Suspend execution of this thread.

 o resume
    method resume()  public     Signals Exception
Resume execution of this thread.

 o step
    method step(skipLine=boolean)  public     Signals Exception
Continue execution of this thread to the next instruction or line.

Parameters:
skipLine - true to execute to next source line, false to next instruction.
Throws: IllegalAccessError
when the thread isn't suspended or waiting at a breakpoint
 o next
    method next()  public     Signals Exception
Continue execution of this thread to the next line, but don't step into a method call. If no line information is available, next() is equivalent to step().

Throws: IllegalAccessError
when the thread isn't suspended or waiting at a breakpoint
 o isSuspended
    method isSuspended() returns boolean public     
Return whether this thread is suspended.

 o cont
    method cont()  public     Signals Exception
Resume this thread from a breakpoint, unless it previously suspended.

 o stop
    method stop()  public     Signals Exception
Stop the remote thread.

 o getStackVariable
    method getStackVariable(name=String) returns RemoteStackVariable public     Signals Exception
Return a stack variable from the current stackframe.

Returns:
the variable as a RemoteValue, or null if not found.
 o getStackVariables
    method getStackVariables() returns RemoteStackVariable[] public     Signals Exception
Return the arguments and local variable from the current stackframe.

Returns:
an array of RemoteValues.

All Packages  Class Hierarchy  This Package  Previous  Next  Index