APIdia Launch Partner
Top Fields Constructors Methods
com.sun.tools.example.debug.tty

pack-priv Class ThreadInfo

extends Object
Class Inheritance
Imports
com.sun.jdi.ThreadReference, .ThreadGroupReference, .IncompatibleThreadStateException, .StackFrame, java.util.List, .ArrayList, .Collections

Field Summary

Modifier and TypeField and Description
private static ThreadInfo
private int
private static boolean
private static ThreadGroupReference
private final ThreadReference
private static List<ThreadInfo>
private static List<ThreadInfo>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
private void
pack-priv void
down(int
the number of stackframes
nFrames
)

Change the current stackframe to be one or more frames lower (as in, toward the current program counter).

pack-priv StackFrame

Returns:

the current stackframe.
getCurrentFrame
()

Get the current stackframe.

pack-priv int

Returns:

the number of the current stackframe. Frame zero is the closest to the current program counter
getCurrentFrameIndex
()

Get the current stackframe index.

pack-priv static ThreadInfo

Returns:

the ThreadInfo for the current thread.
getCurrentThreadInfo
()

Get the current ThreadInfo object.

pack-priv List<StackFrame>

Returns:

a List of the stack frames.
getStack
()

Get the thread stack frames.

pack-priv ThreadReference

Returns:

the Thread wrapped by this ThreadInfo.
getThread
()

Get the thread from this ThreadInfo object.

pack-priv static ThreadInfo
getThreadInfo(long id)

pack-priv static ThreadInfo
pack-priv static ThreadInfo
pack-priv static ThreadGroupReference
private static void
pack-priv void
invalidate()

Invalidate the current stackframe index.

pack-priv static void
pack-priv static void
pack-priv void
setCurrentFrameIndex(int
the number of the desired stackframe. Frame zero is the closest to the current program counter
nFrame
)

Set the current stackframe to a specific frame.

pack-priv static void
pack-priv static void
pack-priv static void
pack-priv static List<ThreadInfo>
pack-priv void
up(int
the number of stackframes
nFrames
)

Change the current stackframe to be one or more frames higher (as in, away from the current program counter).

pack-priv static List<ThreadInfo>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentback to summary
private static ThreadInfo current
currentFrameIndexback to summary
private int currentFrameIndex
gotInitialThreadsback to summary
private static boolean gotInitialThreads
groupback to summary
private static ThreadGroupReference group
threadback to summary
private final ThreadReference thread
threadsback to summary
private static List<ThreadInfo> threads
vthreadsback to summary
private static List<ThreadInfo> vthreads

Constructor Detail

ThreadInfoback to summary
private ThreadInfo(ThreadReference thread)

Method Detail

addThreadback to summary
pack-priv static boolean addThread(ThreadReference thread)
assureSuspendedback to summary
private void assureSuspended() throws IncompatibleThreadStateException
downback to summary
pack-priv void down(int nFrames) throws IncompatibleThreadStateException

Change the current stackframe to be one or more frames lower (as in, toward the current program counter). *

Parameters
nFrames:int

the number of stackframes

Exceptions
IllegalAccessError:
when the thread isn't suspended or waiting at a breakpoint
ArrayIndexOutOfBoundsException:
when the requested frame is beyond the stack boundary
getCurrentFrameback to summary
pack-priv StackFrame getCurrentFrame() throws IncompatibleThreadStateException

Get the current stackframe.

Returns:StackFrame

the current stackframe.

getCurrentFrameIndexback to summary
pack-priv int getCurrentFrameIndex()

Get the current stackframe index.

Returns:int

the number of the current stackframe. Frame zero is the closest to the current program counter

getCurrentThreadInfoback to summary
pack-priv static ThreadInfo getCurrentThreadInfo()

Get the current ThreadInfo object.

Returns:ThreadInfo

the ThreadInfo for the current thread.

getStackback to summary
pack-priv List<StackFrame> getStack() throws IncompatibleThreadStateException

Get the thread stack frames.

Returns:List<StackFrame>

a List of the stack frames.

getThreadback to summary
pack-priv ThreadReference getThread()

Get the thread from this ThreadInfo object.

Returns:ThreadReference

the Thread wrapped by this ThreadInfo.

getThreadInfoback to summary
pack-priv static ThreadInfo getThreadInfo(long id)
getThreadInfoback to summary
pack-priv static ThreadInfo getThreadInfo(ThreadReference tr)
getThreadInfoback to summary
pack-priv static ThreadInfo getThreadInfo(String idToken)
groupback to summary
pack-priv static ThreadGroupReference group()
initThreadsback to summary
private static void initThreads()
invalidateback to summary
pack-priv void invalidate()

Invalidate the current stackframe index.

invalidateAllback to summary
pack-priv static void invalidateAll()
removeThreadback to summary
pack-priv static void removeThread(ThreadReference thread)
setCurrentFrameIndexback to summary
pack-priv void setCurrentFrameIndex(int nFrame) throws IncompatibleThreadStateException

Set the current stackframe to a specific frame.

Parameters
nFrame:int

the number of the desired stackframe. Frame zero is the closest to the current program counter

Exceptions
IllegalAccessError:
when the thread isn't suspended or waiting at a breakpoint
ArrayIndexOutOfBoundsException:
when the requested frame is beyond the stack boundary
setCurrentThreadback to summary
pack-priv static void setCurrentThread(ThreadReference tr)
setCurrentThreadInfoback to summary
pack-priv static void setCurrentThreadInfo(ThreadInfo tinfo)
setThreadGroupback to summary
pack-priv static void setThreadGroup(ThreadGroupReference tg)
threadsback to summary
pack-priv static List<ThreadInfo> threads()
upback to summary
pack-priv void up(int nFrames) throws IncompatibleThreadStateException

Change the current stackframe to be one or more frames higher (as in, away from the current program counter).

Parameters
nFrames:int

the number of stackframes

Exceptions
IllegalAccessError:
when the thread isn't suspended or waiting at a breakpoint
ArrayIndexOutOfBoundsException:
when the requested frame is beyond the stack boundary
vthreadsback to summary
pack-priv static List<ThreadInfo> vthreads()