Class NewSiteReference

java.lang.Object
com.ibm.wala.classLoader.ProgramCounter
com.ibm.wala.classLoader.NewSiteReference

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.

  • Constructor Details

    • NewSiteReference

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