Class NewSiteReference
java.lang.Object
com.ibm.wala.classLoader.ProgramCounter
com.ibm.wala.classLoader.NewSiteReference
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 class ProgramCounter
NO_SOURCE_LINE_NUMBER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NewSiteReferencemake(int programCounter, TypeReference declaredType) toString()Methods inherited from class ProgramCounter
equals, getProgramCounter, hashCode
-
Constructor Details
-
NewSiteReference
- Parameters:
programCounter- bytecode index of the allocation sitedeclaredType- declared type that is allocated
-
-
Method Details
-
getDeclaredType
-
make
-
toString
- Overrides:
toStringin classProgramCounter
-