public class LineBreakpoint extends JPDABreakpoint
DebuggerManager.addBreakpoint (LineBreakpoint.create ( "examples.texteditor.Ted", 27 ));This breakpoint stops in Ted class on 27 line number.
Breakpoint.GroupProperties, Breakpoint.HIT_COUNT_FILTERING_STYLE, Breakpoint.VALIDITY
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CONDITION
Property name constant.
|
static String |
PROP_INSTANCE_FILTERS
Property name constant
|
static String |
PROP_LINE_NUMBER
Property name constant
|
static String |
PROP_PREFERRED_CLASS_NAME
Property name constant.
|
static String |
PROP_SOURCE_NAME
Property name constant.
|
static String |
PROP_SOURCE_PATH
Property name constant.
|
static String |
PROP_STRATUM
Property name constant.
|
static String |
PROP_THREAD_FILTERS
Property name constant
|
static String |
PROP_URL
Property name 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 LineBreakpoint |
create(String url,
int lineNumber)
Creates a new breakpoint for given parameters.
|
String |
getCondition()
Returns condition.
|
ObjectVariable[] |
getInstanceFilters(JPDADebugger session)
Get the instance filter for a specific debugger session.
|
int |
getLineNumber()
Gets number of line to stop on.
|
String |
getPreferredClassName()
Gets the binary class name that is used to submit the breakpoint.
|
String |
getSourceName()
Returns the name of the source file.
|
String |
getSourcePath()
Returns source path, relative to the source root.
|
String |
getStratum()
Returns stratum.
|
JPDAThread[] |
getThreadFilters(JPDADebugger session)
Get the thread filter for a specific debugger session.
|
String |
getURL()
Gets the string representation of URL of the source file,
which contains the class to stop on.
|
void |
setCondition(String c)
Sets condition.
|
void |
setInstanceFilters(JPDADebugger session,
ObjectVariable[] instances)
Set the instance filter for a specific debugger session.
|
void |
setLineNumber(int ln)
Sets number of line to stop on.
|
void |
setPreferredClassName(String className)
Sets the binary class name that is used to submit the breakpoint.
|
void |
setSourceName(String sn)
Sets the name of the source file.
|
void |
setSourcePath(String sp)
Sets source path, relative to the source root.
|
void |
setStratum(String s)
Sets stratum.
|
void |
setThreadFilters(JPDADebugger session,
JPDAThread[] threads)
Set the thread filter for a specific debugger session.
|
void |
setURL(String url)
Sets the string representation of URL of the source file,
which contains the class to stop on.
|
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_LINE_NUMBER
public static final String PROP_URL
public static final String PROP_CONDITION
public static final String PROP_SOURCE_NAME
public static final String PROP_SOURCE_PATH
public static final String PROP_STRATUM
public static final String PROP_PREFERRED_CLASS_NAME
public static final String PROP_INSTANCE_FILTERS
public static final String PROP_THREAD_FILTERS
public static LineBreakpoint create(String url, int lineNumber)
url
- a string representation of URL of the source filelineNumber
- a line numberpublic String getURL()
public void setURL(String url)
url
- the URL of class to stop onpublic int getLineNumber()
public void setLineNumber(int ln)
ln
- a line number to stop onpublic 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 String getCondition()
public void setCondition(String c)
c
- a new conditionpublic String getStratum()
public void setStratum(String s)
s
- a new stratumpublic String getSourceName()
null
when no source name is defined.public void setSourceName(String sn)
sn
- a new source name or null
.public String getSourcePath()
null
when no source path is defined.public void setSourcePath(String sp)
sp
- a new source path or null
public void setPreferredClassName(String className)
className
- The binary class name, or null
if the class
name should be retrieved automatically from the URL and line number.public String getPreferredClassName()
setPreferedClassName
method, or null
if the class name should be retrieved
automatically from the URL and line number.