com.bluemarsh.jswat.breakpoint
Interface LocatableBreakpoint
- All Known Implementing Classes:
- LocationBreakpoint
- public interface LocatableBreakpoint
Interface LocatableBreakpoint is implemented by those breakpoints
have a location associated with them. This includes method and line
breakpoints, but not exception or watch breakpoints.
- Author:
- Nathan Fiedler
Method Summary |
java.lang.String |
getClassName()
Return the name of the class that this breakpoint is located in. |
int |
getLineNumber()
Retrieve the line number associated with this breakpoint. |
com.sun.jdi.Location |
getLocation()
Retrieve the location associated with this breakpoint. |
getClassName
public java.lang.String getClassName()
- Return the name of the class that this breakpoint is located in.
This could be a fully-qualified class name or a wild-carded name
pattern containing a single asterisk (e.g. "*.cname").
- Returns:
- Class name if known, null if not.
getLineNumber
public int getLineNumber()
- Retrieve the line number associated with this breakpoint.
Not all breakpoints will have a particular line associated
with them (such as method breakpoints). In such cases, this
method will return -1.
- Returns:
- line number of breakpoint, if applicable; -1 if not.
getLocation
public com.sun.jdi.Location getLocation()
- Retrieve the location associated with this breakpoint. The caller
may want to call
isResolved()
before calling this
method. An unresolved breakpoint will not have a location yet.
- Returns:
- location of breakpoint, or null if not resolved.