com.ibm.wala.classLoader
Class NewSiteReference
java.lang.Object
com.ibm.wala.classLoader.ProgramCounter
com.ibm.wala.classLoader.NewSiteReference
- All Implemented Interfaces:
- IProgramCounter
public class NewSiteReference
- extends ProgramCounter
Represents a textual allocation site
Note that the identity of a NewSiteReference depends on two things:
the program counter, and the containing IR. Thus, it suffices to
defines equals() and hashCode() from ProgramCounter, since this class
does not maintain a pointer to the containing IR (or CGNode) anyway.
If using a hashtable of NewSiteReference from different IRs,
you probably want to use a wrapper which also holds a pointer to
the governing CGNode.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NewSiteReference
public NewSiteReference(int programCounter,
TypeReference declaredType)
- Parameters:
programCounter - bytecode index of the allocation sitedeclaredType - declared type that is allocated
getDeclaredType
public TypeReference getDeclaredType()
make
public static NewSiteReference make(int programCounter,
TypeReference declaredType)
toString
public java.lang.String toString()
- Overrides:
toString in class ProgramCounter