Contents
Class ProgramCounter
java.lang.Object
com.ibm.wala.classLoader.ProgramCounter
- Direct Known Subclasses:
CallSiteReference
,NewSiteReference
Simple object that represents a program counter value (i.e., an instruction in the bytecode)
-
Field Details
-
Constructor Details
-
Method Details
-
getProgramCounter
public int getProgramCounter()Return the program counter (index into the method's bytecode) for this call site.- Returns:
- the program counter (index into the method's bytecode) for this call site.
-
equals
A Program Counter value is enough to uniquely identify a call site reference within a method.Note: must use these objects with extreme care; this only works if you never mix ProgramLocations from different methods in the same collection.
-
hashCode
-
toString
-