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