站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Breakpoint (Debugger Core API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.debugger/1 1.11

org.netbeans.api.debugger
Class Breakpoint

java.lang.Object
  extended by org.netbeans.api.debugger.Breakpoint

public abstract class Breakpoint
extends Object

Abstract definition of breakpoint.


Nested Class Summary
static class Breakpoint.HIT_COUNT_FILTERING_STYLE
          The style of filtering of hit counts.
static class Breakpoint.VALIDITY
          Validity values
 
Field Summary
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_HIT_COUNT_FILTER
          Property name constant.
static String PROP_VALIDITY
          Property name for breakpoint validity
 
Constructor Summary
Breakpoint()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add a listener to property changes.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
          Adds a property change listener.
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.
 String getGroupName()
           
 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 setGroupName(String newGroupName)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_ENABLED

public static final String PROP_ENABLED
Property name for enabled status of the breakpoint.

See Also:
Constant Field Values

PROP_DISPOSED

public static final String PROP_DISPOSED
Property name for disposed state of the breakpoint.

See Also:
Constant Field Values

PROP_GROUP_NAME

public static final String PROP_GROUP_NAME
Property name for name of group of the breakpoint.

See Also:
Constant Field Values

PROP_VALIDITY

public static final String PROP_VALIDITY
Property name for breakpoint validity

See Also:
Constant Field Values

PROP_HIT_COUNT_FILTER

public static final String PROP_HIT_COUNT_FILTER
Property name constant.

See Also:
Constant Field Values
Constructor Detail

Breakpoint

public Breakpoint()
Method Detail

dispose

protected void dispose()
Called when breakpoint is removed.


isEnabled

public abstract boolean isEnabled()
Test whether the breakpoint is enabled.

Returns:
true if so

disable

public abstract void disable()
Disables the breakpoint.


enable

public abstract void enable()
Enables the breakpoint.


getValidity

public final Breakpoint.VALIDITY getValidity()
Get the validity of this breakpoint.

Returns:
The breakpoint validity.

getValidityMessage

public final String getValidityMessage()
Get the message describing the current validity. For invalid breakpoints this should describe the reason why it is invalid.

Intended for use by ui implementation code, NodeModel.getShortDescription(), for example.

Returns:
The validity message.

setValidity

protected final void setValidity(Breakpoint.VALIDITY validity,
                                 String reason)
Set the validity of this breakpoint.

Parameters:
validity - The new breakpoint validity.
reason - The message describing why is this validity being set, or null.

getHitCountFilter

public final int getHitCountFilter()
Get the hit count filter.

Returns:
a positive hit count filter, or zero when no hit count filter is set.

getHitCountFilteringStyle

public final Breakpoint.HIT_COUNT_FILTERING_STYLE getHitCountFilteringStyle()
Get the style of hit count filtering.

Returns:
the style of hit count filtering, or null when no count filter is set.

setHitCountFilter

public final void setHitCountFilter(int hitCountFilter,
                                    Breakpoint.HIT_COUNT_FILTERING_STYLE hitCountFilteringStyle)
Set the hit count filter and the style of filtering.

Parameters:
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.

getGroupName

public String getGroupName()

setGroupName

public void setGroupName(String newGroupName)

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Add a listener to property changes.

Parameters:
listener - the listener to add

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener to property changes.

Parameters:
listener - the listener to remove

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener l)
Adds a property change listener.

Parameters:
propertyName - a name of property to listen on
l - the listener to add

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener l)
Removes a property change listener.

Parameters:
propertyName - a name of property to stop listening on
l - the listener to remove

firePropertyChange

protected void firePropertyChange(String name,
                                  Object o,
                                  Object n)
Fire property change.

Parameters:
name - name of property
o - old value of property
n - new value of property

org.netbeans.api.debugger/1 1.11

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.