Package com.ibm.wala.classLoader
Class NewSiteReference
- java.lang.Object
-
- com.ibm.wala.classLoader.ProgramCounter
-
- com.ibm.wala.classLoader.NewSiteReference
-
public class NewSiteReference extends ProgramCounter
Represents a textual allocation siteNote that the identity of a
NewSiteReference
depends on two things: the program counter, and the containingIR
. 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 class com.ibm.wala.classLoader.ProgramCounter
NO_SOURCE_LINE_NUMBER
-
-
Constructor Summary
Constructors Constructor Description NewSiteReference(int programCounter, TypeReference declaredType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
NewSiteReference
public NewSiteReference(int programCounter, TypeReference declaredType)
- Parameters:
programCounter
- bytecode index of the allocation sitedeclaredType
- 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 classProgramCounter
-
-