public class ProgramCounter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_SOURCE_LINE_NUMBER
A constant indicating no source line number information is available.
|
| Constructor and Description |
|---|
ProgramCounter(int programCounter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
A Program Counter value is enough to uniquely identify a call site reference within a method.
|
int |
getProgramCounter()
Return the program counter (index into the method's bytecode) for this call site.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final int NO_SOURCE_LINE_NUMBER
public ProgramCounter(int programCounter)
programCounter - Index into bytecode describing this instructionpublic int getProgramCounter()
public boolean equals(java.lang.Object obj)
Note: must use these objects with extreme care; this only works if you never mix ProgramLocations from different methods in the same collection.
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object