public class ClassLoadUnloadBreakpoint extends JPDABreakpoint
DebuggerManager.addBreakpoint (ClassLoadUnloadBreakpoint.create ( "org.netbeans.modules.editor.*", false, ClassLoadUnloadBreakpoint.TYPE_CLASS_LOADED ));This breakpoint stops when some class from org.netbeans.modules.editor package is loaded.
Breakpoint.GroupProperties, Breakpoint.HIT_COUNT_FILTERING_STYLE, Breakpoint.VALIDITY
Modifier and Type | Field and Description |
---|---|
static String |
PROP_BREAKPOINT_TYPE
Name of property for breakpoint type.
|
static String |
PROP_CLASS_EXCLUSION_FILTERS
Property name constant
|
static String |
PROP_CLASS_FILTERS
Property name constant
|
static int |
TYPE_CLASS_LOADED
Catch type property value constant.
|
static int |
TYPE_CLASS_LOADED_UNLOADED
Catch type property value constant.
|
static int |
TYPE_CLASS_UNLOADED
Catch type property value constant.
|
PROP_HIDDEN, PROP_PRINT_TEXT, PROP_SUSPEND, SUSPEND_ALL, SUSPEND_EVENT_THREAD, SUSPEND_NONE
PROP_DISPOSED, PROP_ENABLED, PROP_GROUP_NAME, PROP_GROUP_PROPERTIES, PROP_HIT_COUNT_FILTER, PROP_VALIDITY
Modifier and Type | Method and Description |
---|---|
static ClassLoadUnloadBreakpoint |
create(int breakpointType)
Creates a new breakpoint for given parameters.
|
static ClassLoadUnloadBreakpoint |
create(String classNameFilter,
boolean isExclusionFilter,
int breakpointType)
Creates a new breakpoint for given parameters.
|
int |
getBreakpointType()
Returns type of breakpoint.
|
String[] |
getClassExclusionFilters()
Get list of class exclusion filters to stop on.
|
String[] |
getClassFilters()
Get list of class filters to stop on.
|
void |
setBreakpointType(int type)
Sets type of breakpoint.
|
void |
setClassExclusionFilters(String[] classExclusionFilters)
Set list of class exclusion filters to stop on.
|
void |
setClassFilters(String[] classFilters)
Set list of class filters to stop on.
|
String |
toString()
Returns a string representation of this object.
|
addJPDABreakpointListener, canHaveDependentBreakpoints, disable, enable, getPrintText, getSession, getSuspend, isEnabled, isHidden, removeJPDABreakpointListener, setHidden, setPrintText, setSession, setSuspend
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getBreakpointsToDisable, getBreakpointsToEnable, getGroupName, getGroupProperties, getHitCountFilter, getHitCountFilteringStyle, getValidity, getValidityMessage, removePropertyChangeListener, removePropertyChangeListener, setBreakpointsToDisable, setBreakpointsToEnable, setGroupName, setHitCountFilter, setValidity
public static final String PROP_CLASS_FILTERS
public static final String PROP_CLASS_EXCLUSION_FILTERS
public static final String PROP_BREAKPOINT_TYPE
public static final int TYPE_CLASS_LOADED
public static final int TYPE_CLASS_UNLOADED
public static final int TYPE_CLASS_LOADED_UNLOADED
public static ClassLoadUnloadBreakpoint create(String classNameFilter, boolean isExclusionFilter, int breakpointType)
classNameFilter
- class name filterisExclusionFilter
- if true filter is used as exclusion filterbreakpointType
- one of constants: TYPE_CLASS_LOADED,
TYPE_CLASS_UNLOADED, TYPE_CLASS_LOADED_UNLOADEDpublic static ClassLoadUnloadBreakpoint create(int breakpointType)
breakpointType
- one of constants: TYPE_CLASS_LOADED,
TYPE_CLASS_UNLOADED, TYPE_CLASS_LOADED_UNLOADEDpublic int getBreakpointType()
public void setBreakpointType(int type)
type
- a new value of breakpoint type propertypublic String[] getClassFilters()
public void setClassFilters(String[] classFilters)
classFilters
- a new value of class filters propertypublic String[] getClassExclusionFilters()
public void setClassExclusionFilters(String[] classExclusionFilters)
classExclusionFilters
- a new value of class exclusion filters property