| |
|
| java.lang.Object org.netbeans.api.debugger.Breakpoint org.netbeans.api.debugger.jpda.JPDABreakpoint org.netbeans.api.debugger.jpda.FieldBreakpoint
FieldBreakpoint | public class FieldBreakpoint extends JPDABreakpoint (Code) | | Notifies about variable change or access events.
How to use it:
DebuggerManager.addBreakpoint (FieldBreakpoint.create (
"org.netbeans.modules.editor.EditorPanel",
"state",
FieldBreakpoint.TYPE_MODIFICATION
));
This breakpoint stops when state field of EditorPanel class is modified.
author: Jan Jancura |
PROP_BREAKPOINT_TYPE | final public static String PROP_BREAKPOINT_TYPE(Code) | | Property name constant.
|
PROP_CLASS_NAME | final public static String PROP_CLASS_NAME(Code) | | Property name constant.
|
PROP_CONDITION | final public static String PROP_CONDITION(Code) | | Property name constant.
|
PROP_FIELD_NAME | final public static String PROP_FIELD_NAME(Code) | | Property name constant.
|
PROP_INSTANCE_FILTERS | final public static String PROP_INSTANCE_FILTERS(Code) | | Property name constant
|
PROP_THREAD_FILTERS | final public static String PROP_THREAD_FILTERS(Code) | | Property name constant
|
TYPE_ACCESS | final public static int TYPE_ACCESS(Code) | | Property type value constant.
|
TYPE_MODIFICATION | final public static int TYPE_MODIFICATION(Code) | | Property type value constant.
|
create | public static FieldBreakpoint create(String className, String fieldName, int breakpointType)(Code) | | Creates a new breakpoint for given parameters.
Parameters: className - class name Parameters: fieldName - name of field Parameters: breakpointType - one of constants: TYPE_ACCESS, TYPE_MODIFICATION a new breakpoint for given parameters |
getBreakpointType | public int getBreakpointType()(Code) | | Returns type of breakpoint (one of TYPE_ACCESS and TYPE_MODIFICATION).
type of breakpoint |
getClassName | public String getClassName()(Code) | | Get name of class the field is defined in.
the name of class the field is defined in |
getCondition | public String getCondition()(Code) | | Returns condition.
cond a condition |
getFieldName | public String getFieldName()(Code) | | Returns name of field.
a name of field |
getInstanceFilters | public ObjectVariable[] getInstanceFilters(JPDADebugger session)(Code) | | Get the instance filter for a specific debugger session.
The instances or null when there is no instance restriction. |
getThreadFilters | public JPDAThread[] getThreadFilters(JPDADebugger session)(Code) | | Get the thread filter for a specific debugger session.
The thread or null when there is no thread restriction. |
setBreakpointType | public void setBreakpointType(int type)(Code) | | Sets type of breakpoint.
Parameters: type - a new type of breakpoint |
setClassName | public void setClassName(String className)(Code) | | Set name of class the field is defined in.
Parameters: className - a new name of class the field is defined in |
setCondition | public void setCondition(String cond)(Code) | | Sets condition.
Parameters: cond - a c new condition |
setFieldName | public void setFieldName(String name)(Code) | | Sets name of field.
Parameters: name - a name of field |
setInstanceFilters | public void setInstanceFilters(JPDADebugger session, ObjectVariable[] instances)(Code) | | Set the instance filter for a specific debugger session. This restricts
the breakpoint to specific instances in that session.
Parameters: session - the debugger session Parameters: instances - the object instances or null to unset the filter. |
setThreadFilters | public void setThreadFilters(JPDADebugger session, JPDAThread[] threads)(Code) | | Set the thread filter for a specific debugger session. This restricts
the breakpoint to specific threads in that session.
Parameters: session - the debugger session Parameters: threads - the threads or null to unset the filter. |
toString | public String toString()(Code) | | Returns a string representation of this object.
a string representation of the object |
|
|
|