com.ibm.wala.classLoader
Class NewSiteReference

java.lang.Object
  extended by com.ibm.wala.classLoader.ProgramCounter
      extended by 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.


Field Summary
 
Fields inherited from interface com.ibm.wala.classLoader.IProgramCounter
NO_SOURCE_LINE_NUMBER
 
Constructor Summary
NewSiteReference(int programCounter, TypeReference declaredType)
           
 
Method Summary
 TypeReference getDeclaredType()
           
static NewSiteReference make(int programCounter, TypeReference declaredType)
           
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.wala.classLoader.ProgramCounter
equals, getProgramCounter, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewSiteReference

public NewSiteReference(int programCounter,
                        TypeReference declaredType)
Parameters:
programCounter - bytecode index of the allocation site
declaredType - declared type that is allocated
Method Detail

getDeclaredType

public TypeReference getDeclaredType()

make

public static NewSiteReference make(int programCounter,
                                    TypeReference declaredType)

toString

public java.lang.String toString()
Overrides:
toString in class ProgramCounter