Package org.eclipse.jdt.debug.core
Interface IJavaThreadGroup
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.debug.core.model.IDebugElement
public interface IJavaThreadGroup
extends org.eclipse.debug.core.model.IDebugElement
Represents a thread group in the target VM.
- Since:
- 3.2
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of this thread group.Returns the thread group this thread group is contained in ornull
if none.Returns immediate thread groups contained in this thread.Returns the threads in this thread group.boolean
Returns whether this thread group contains subgroups.boolean
Returns whether this group contains any threads.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement
getDebugTarget, getLaunch, getModelIdentifier
-
Method Details
-
getThreads
Returns the threads in this thread group. Does not include threads in subgroups.- Returns:
- threads in this group
- Throws:
org.eclipse.debug.core.DebugException
- if the request fails
-
hasThreads
boolean hasThreads() throws org.eclipse.debug.core.DebugExceptionReturns whether this group contains any threads.- Returns:
- whether this group contains any threads
- Throws:
org.eclipse.debug.core.DebugException
- if the request fails
-
getThreadGroup
Returns the thread group this thread group is contained in ornull
if none.- Returns:
- parent thread group or
null
- Throws:
org.eclipse.debug.core.DebugException
- if the request fails
-
hasThreadGroups
boolean hasThreadGroups() throws org.eclipse.debug.core.DebugExceptionReturns whether this thread group contains subgroups.- Returns:
- whether this thread group contains subgroups
- Throws:
org.eclipse.debug.core.DebugException
- if the request fails
-
getThreadGroups
Returns immediate thread groups contained in this thread. Does not include subgroups of immediate groups.- Returns:
- thread groups contained in this group
- Throws:
org.eclipse.debug.core.DebugException
- if the request fails
-
getName
Returns the name of this thread group.- Returns:
- thread group name
- Throws:
org.eclipse.debug.core.DebugException
- if the request fails
-