| 
org.netbeans.api.debugger.jpda/2 2.4.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.debugger.Breakpoint
org.netbeans.api.debugger.jpda.JPDABreakpoint
org.netbeans.api.debugger.jpda.MethodBreakpoint
public final class MethodBreakpoint
Notifies about method entry events.
 
 How to use it:
 
    DebuggerManager.addBreakpoint (MethodBreakpoint.create (
        "examples.texteditor.Ted*",
        "
    )); 
 This breakpoint stops when some initializer of class Ted or innercalsses is
 called.
| Field Summary | |
|---|---|
static String | 
PROP_BREAKPOINT_TYPE
Property name constant.  | 
static String | 
PROP_CLASS_EXCLUSION_FILTERS
Property name constant  | 
static String | 
PROP_CLASS_FILTERS
Property name constant  | 
static String | 
PROP_CONDITION
Property name constant.  | 
static String | 
PROP_METHOD_NAME
Property name constant  | 
static int | 
TYPE_METHOD_ENTRY
Breakpoint type property value constant.  | 
static int | 
TYPE_METHOD_EXIT
Breakpoint type property value constant.  | 
| Fields inherited from class org.netbeans.api.debugger.jpda.JPDABreakpoint | 
|---|
PROP_HIDDEN, PROP_PRINT_TEXT, PROP_SUSPEND, SUSPEND_ALL, SUSPEND_EVENT_THREAD, SUSPEND_NONE | 
| Fields inherited from class org.netbeans.api.debugger.Breakpoint | 
|---|
PROP_DISPOSED, PROP_ENABLED, PROP_GROUP_NAME | 
| Method Summary | |
|---|---|
static MethodBreakpoint | 
create()
Creates a new method breakpoint.  | 
static MethodBreakpoint | 
create(String className,
       String methodName)
Creates a new method breakpoint for given parameters.  | 
 int | 
getBreakpointType()
Returns type of this breakpoint.  | 
 String[] | 
getClassExclusionFilters()
Get list of class exclusion filters to stop on.  | 
 String[] | 
getClassFilters()
Get list of class filters to stop on.  | 
 String | 
getCondition()
Returns condition.  | 
 String | 
getMethodName()
Get name of method to stop on.  | 
 void | 
setBreakpointType(int breakpointType)
Sets type of this breakpoint (TYPE_METHOD_ENTRY or TYPE_METHOD_EXIT).  | 
 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.  | 
 void | 
setCondition(String cond)
Sets condition.  | 
 void | 
setMethodName(String mn)
Set name of method to stop on.  | 
 String | 
toString()
Returns a string representation of this object.  | 
| Methods inherited from class org.netbeans.api.debugger.jpda.JPDABreakpoint | 
|---|
addJPDABreakpointListener, disable, enable, getPrintText, getSuspend, isEnabled, isHidden, removeJPDABreakpointListener, setHidden, setPrintText, setSuspend | 
| Methods inherited from class org.netbeans.api.debugger.Breakpoint | 
|---|
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getGroupName, removePropertyChangeListener, removePropertyChangeListener, setGroupName | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String PROP_METHOD_NAME
public static final String PROP_BREAKPOINT_TYPE
public static final String PROP_CONDITION
public static final String PROP_CLASS_FILTERS
public static final String PROP_CLASS_EXCLUSION_FILTERS
public static final int TYPE_METHOD_ENTRY
public static final int TYPE_METHOD_EXIT
| Method Detail | 
|---|
public static MethodBreakpoint create(String className, String methodName)
className - a class name filtermethodName - a name of method
public static MethodBreakpoint create()
public String getMethodName()
public void setMethodName(String mn)
mn - a name of method to stop onpublic String getCondition()
public void setCondition(String cond)
cond - a c new conditionpublic int getBreakpointType()
public void setBreakpointType(int breakpointType)
breakpointType - 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 propertypublic String toString()
  | 
org.netbeans.api.debugger.jpda/2 2.4.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||