public abstract class Breakpoint extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Breakpoint.GroupProperties
Group properties of breakpoint.
|
static class |
Breakpoint.HIT_COUNT_FILTERING_STYLE
The style of filtering of hit counts.
|
static class |
Breakpoint.VALIDITY
Validity values
|
Modifier and Type | Field and Description |
---|---|
static String |
PROP_DISPOSED
Property name for disposed state of the breakpoint.
|
static String |
PROP_ENABLED
Property name for enabled status of the breakpoint.
|
static String |
PROP_GROUP_NAME
Property name for name of group of the breakpoint.
|
static String |
PROP_GROUP_PROPERTIES
Property name for other group properties of the breakpoint.
|
static String |
PROP_HIT_COUNT_FILTER
Property name constant.
|
static String |
PROP_VALIDITY
Property name for breakpoint validity
|
Constructor and Description |
---|
Breakpoint() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a listener to property changes.
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
Adds a property change listener.
|
boolean |
canHaveDependentBreakpoints()
Determines if the breakpoint supports dependent breakpoints.
|
abstract void |
disable()
Disables the breakpoint.
|
protected void |
dispose()
Called when breakpoint is removed.
|
abstract void |
enable()
Enables the breakpoint.
|
protected void |
firePropertyChange(String name,
Object o,
Object n)
Fire property change.
|
Set<Breakpoint> |
getBreakpointsToDisable()
Get the set of breakpoints that will be disabled after this breakpoint
is hit.
|
Set<Breakpoint> |
getBreakpointsToEnable()
Get the set of breakpoints that will be enabled after this breakpoint
is hit.
|
String |
getGroupName()
Get the name of a user-created group for this breakpoint.
|
Breakpoint.GroupProperties |
getGroupProperties()
Get group properties of the breakpoint.
|
int |
getHitCountFilter()
Get the hit count filter.
|
Breakpoint.HIT_COUNT_FILTERING_STYLE |
getHitCountFilteringStyle()
Get the style of hit count filtering.
|
Breakpoint.VALIDITY |
getValidity()
Get the validity of this breakpoint.
|
String |
getValidityMessage()
Get the message describing the current validity.
|
abstract boolean |
isEnabled()
Test whether the breakpoint is enabled.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener to property changes.
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
Removes a property change listener.
|
void |
setBreakpointsToDisable(Set<Breakpoint> breakpointsToDisable)
Set the set of breakpoints that will be disabled after this breakpoint
is hit.
|
void |
setBreakpointsToEnable(Set<Breakpoint> breakpointsToEnable)
Set the set of breakpoints that will be enabled after this breakpoint
is hit.
|
void |
setGroupName(String newGroupName)
Set the name of a user-created group for this breakpoint.
|
void |
setHitCountFilter(int hitCountFilter,
Breakpoint.HIT_COUNT_FILTERING_STYLE hitCountFilteringStyle)
Set the hit count filter and the style of filtering.
|
protected void |
setValidity(Breakpoint.VALIDITY validity,
String reason)
Set the validity of this breakpoint.
|
public static final String PROP_ENABLED
public static final String PROP_DISPOSED
public static final String PROP_GROUP_NAME
public static final String PROP_GROUP_PROPERTIES
public static final String PROP_VALIDITY
public static final String PROP_HIT_COUNT_FILTER
protected void dispose()
public abstract boolean isEnabled()
true
if sopublic abstract void disable()
public abstract void enable()
public final Breakpoint.VALIDITY getValidity()
public final String getValidityMessage()
Intended for use by ui implementation code, NodeModel.getShortDescription(), for example.
protected final void setValidity(Breakpoint.VALIDITY validity, String reason)
validity
- The new breakpoint validity.reason
- The message describing why is this validity being set, or null
.public final int getHitCountFilter()
zero
when no hit count filter is set.public final Breakpoint.HIT_COUNT_FILTERING_STYLE getHitCountFilteringStyle()
null
when no count filter is set.public final void setHitCountFilter(int hitCountFilter, Breakpoint.HIT_COUNT_FILTERING_STYLE hitCountFilteringStyle)
hitCountFilter
- a positive hit count filter, or zero
to unset the filter.hitCountFilteringStyle
- the style of hit count filtering.
Can be null
only when hitCountFilter == 0
.public String getGroupName()
public void setGroupName(String newGroupName)
public Breakpoint.GroupProperties getGroupProperties()
Breakpoint.getGroupName()
,
which returns user-defined group name.
These properties are used by the Breakpoint Window to show a tree
hierarchy of groups and associated breakpoints.
Implementation should fire Breakpoint.PROP_GROUP_PROPERTIES
event when
the group properties change.
Breakpoint.GroupProperties
or null
when no group properties
are defined.public boolean canHaveDependentBreakpoints()
true
if the dependent breakpoints are supported,
false
otherwise.@NonNull public Set<Breakpoint> getBreakpointsToEnable()
Not all breakpoint implementations honor dependent breakpoints.
Use Breakpoint.canHaveDependentBreakpoints()
to determine if the operation is supported.
UnsupportedOperationException
- if the breakpoint does not support
dependent breakpoints - see Breakpoint.canHaveDependentBreakpoints()
.@NonNull public Set<Breakpoint> getBreakpointsToDisable()
Not all breakpoint implementations honor dependent breakpoints.
Use Breakpoint.canHaveDependentBreakpoints()
to determine if the operation is supported.
UnsupportedOperationException
- if the breakpoint does not support
dependent breakpoints - see Breakpoint.canHaveDependentBreakpoints()
.public void setBreakpointsToEnable(@NonNull Set<Breakpoint> breakpointsToEnable)
Not all breakpoint implementations honor dependent breakpoints.
Use Breakpoint.canHaveDependentBreakpoints()
to determine if the operation is supported.
breakpointsToEnable
- The set of breakpoints.UnsupportedOperationException
- if the breakpoint does not support
dependent breakpoints - see Breakpoint.canHaveDependentBreakpoints()
.public void setBreakpointsToDisable(@NonNull Set<Breakpoint> breakpointsToDisable)
Not all breakpoint implementations honor dependent breakpoints.
Use Breakpoint.canHaveDependentBreakpoints()
to determine if the operation is supported.
breakpointsToDisable
- The set of breakpoints.UnsupportedOperationException
- if the breakpoint does not support
dependent breakpoints - see Breakpoint.canHaveDependentBreakpoints()
.public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to removepublic void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
propertyName
- a name of property to listen onl
- the listener to addpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener l)
propertyName
- a name of property to stop listening onl
- the listener to remove