|
Java Debug Interface | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A point within the executing code of the target VM. Locations are used to identify the current position of a suspended thread (analogous to an instruction pointer or program counter register in native programs). They are also used to identify the position at which to set a breakpoint.
The availability of a line number for a location will depend on the level of debugging information available from the target VM.
Several mirror interfaces have locations. Each such mirror extends a
Locatable interface.
EventRequestManager,
StackFrame,
BreakpointEvent,
ExceptionEvent,
Locatable| Method Summary | |
long |
codeIndex()
Gets the code position within this location's method. |
ReferenceType |
declaringType()
Gets the type to which this Location belongs. |
boolean |
equals(Object obj)
Compares the specified Object with this Location for equality. |
int |
hashCode()
Returns the hash code value for this Location. |
int |
lineNumber()
The line number of this Location. |
Method |
method()
Gets the method, if any, containing this Location. |
String |
sourceName()
Gets an identifing name for the source corresponding to this location. |
| Methods inherited from interface com.sun.jdi.Mirror |
toString, virtualMachine |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public ReferenceType declaringType()
ClassType, but executable
locations also may exist within the static initializer of an
InterfaceType.ReferenceType containing this Location.public Method method()
Method if this location is in a method,
otherwise null.public long codeIndex()
public String sourceName()
throws AbsentInformationException
In the reference implementation, the returned string is the unqualified name of the source file for this Location.
AbsentInformationException - if the source name is not
knownpublic int lineNumber()
sourceName().public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Java Debug Interface | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||