public class MethodBreakpoint extends JPDABreakpoint
DebuggerManager.addBreakpoint (MethodBreakpoint.create ( "examples.texteditor.Ted*", "This breakpoint stops when some initializer of class Ted or innercalsses is called.));
Breakpoint.GroupProperties, Breakpoint.HIT_COUNT_FILTERING_STYLE, Breakpoint.VALIDITY
Modifier and Type | Field and Description |
---|---|
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_INSTANCE_FILTERS
Property name constant
|
static String |
PROP_METHOD_NAME
Property name constant
|
static String |
PROP_METHOD_SIGNATURE
Property name constant
|
static String |
PROP_THREAD_FILTERS
Property name constant
|
static int |
TYPE_METHOD_ENTRY
Breakpoint type property value constant.
|
static int |
TYPE_METHOD_EXIT
Breakpoint 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 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.
|
ObjectVariable[] |
getInstanceFilters(JPDADebugger session)
Get the instance filter for a specific debugger session.
|
String |
getMethodName()
Get name of method to stop on.
|
String |
getMethodSignature()
Get the JNI-style signature of the method to stop on.
|
JPDAThread[] |
getThreadFilters(JPDADebugger session)
Get the thread filter for a specific debugger session.
|
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 |
setInstanceFilters(JPDADebugger session,
ObjectVariable[] instances)
Set the instance filter for a specific debugger session.
|
void |
setMethodName(String mn)
Set name of method to stop on.
|
void |
setMethodSignature(String signature)
Set JNI-style signature of the method to stop on.
|
void |
setThreadFilters(JPDADebugger session,
JPDAThread[] threads)
Set the thread filter for a specific debugger session.
|
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_METHOD_NAME
public static final String PROP_METHOD_SIGNATURE
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 String PROP_INSTANCE_FILTERS
public static final String PROP_THREAD_FILTERS
public static final int TYPE_METHOD_ENTRY
public static final int TYPE_METHOD_EXIT
public static MethodBreakpoint create(String className, String methodName)
className
- a class name filtermethodName
- a name of methodpublic static MethodBreakpoint create()
public String getMethodName()
public void setMethodName(String mn)
mn
- a name of method to stop onpublic String getMethodSignature()
TypeComponent.signature()
public void setMethodSignature(String signature)
signature
- the JNI-style signature of the method to stop onTypeComponent.signature()
public 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 ObjectVariable[] getInstanceFilters(JPDADebugger session)
null
when there is no instance restriction.public void setInstanceFilters(JPDADebugger session, ObjectVariable[] instances)
session
- the debugger sessioninstances
- the object instances or null
to unset the filter.public JPDAThread[] getThreadFilters(JPDADebugger session)
null
when there is no thread restriction.public void setThreadFilters(JPDADebugger session, JPDAThread[] threads)
session
- the debugger sessionthreads
- the threads or null
to unset the filter.