public class FieldBreakpoint extends JPDABreakpoint
DebuggerManager.addBreakpoint (FieldBreakpoint.create ( "org.netbeans.modules.editor.EditorPanel", "state", FieldBreakpoint.TYPE_MODIFICATION ));This breakpoint stops when state field of EditorPanel class is modified.
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_NAME
Property name constant.
|
static String |
PROP_CONDITION
Property name constant.
|
static String |
PROP_FIELD_NAME
Property name constant.
|
static String |
PROP_INSTANCE_FILTERS
Property name constant
|
static String |
PROP_THREAD_FILTERS
Property name constant
|
static int |
TYPE_ACCESS
Property type value constant.
|
static int |
TYPE_MODIFICATION
Property type 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 FieldBreakpoint |
create(String className,
String fieldName,
int breakpointType)
Creates a new breakpoint for given parameters.
|
int |
getBreakpointType()
Returns type of breakpoint (one of TYPE_ACCESS and TYPE_MODIFICATION).
|
String |
getClassName()
Get name of class the field is defined in.
|
String |
getCondition()
Returns condition.
|
String |
getFieldName()
Returns name of field.
|
ObjectVariable[] |
getInstanceFilters(JPDADebugger session)
Get the instance filter for a specific debugger session.
|
JPDAThread[] |
getThreadFilters(JPDADebugger session)
Get the thread filter for a specific debugger session.
|
void |
setBreakpointType(int type)
Sets type of breakpoint.
|
void |
setClassName(String className)
Set name of class the field is defined in.
|
void |
setCondition(String cond)
Sets condition.
|
void |
setFieldName(String name)
Sets name of field.
|
void |
setInstanceFilters(JPDADebugger session,
ObjectVariable[] instances)
Set the instance filter for a specific debugger session.
|
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_FIELD_NAME
public static final String PROP_CLASS_NAME
public static final String PROP_CONDITION
public static final String PROP_BREAKPOINT_TYPE
public static final String PROP_INSTANCE_FILTERS
public static final String PROP_THREAD_FILTERS
public static final int TYPE_ACCESS
public static final int TYPE_MODIFICATION
public static FieldBreakpoint create(String className, String fieldName, int breakpointType)
className
- class namefieldName
- name of fieldbreakpointType
- one of constants: TYPE_ACCESS,
TYPE_MODIFICATIONpublic String getClassName()
public void setClassName(String className)
className
- a new name of class the field is defined inpublic String getFieldName()
public void setFieldName(String name)
name
- a name of fieldpublic 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.public int getBreakpointType()
public void setBreakpointType(int type)
type
- a new type of breakpointpublic String getCondition()
public void setCondition(String cond)
cond
- a c new condition