Class AbstractTypeInNode

java.lang.Object
com.ibm.wala.ipa.callgraph.propagation.AbstractTypeInNode
All Implemented Interfaces:
InstanceKeyWithNode, ContextItem, InstanceKey
Direct Known Subclasses:
AllocationSiteInNode, SmushedAllocationSiteInNode

public abstract class AbstractTypeInNode extends Object implements InstanceKeyWithNode
Abstract base class for InstanceKey which represents at least some IClass in some CGNode.
  • Constructor Details

    • AbstractTypeInNode

      public AbstractTypeInNode(CGNode node, IClass type)
  • Method Details

    • equals

      public abstract boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public abstract String toString()
      Overrides:
      toString in class Object
    • getConcreteType

      public IClass getConcreteType()
      Description copied from interface: InstanceKey
      For now, we assert that each InstanceKey represents a set of classes which are all of the same concrete type (modulo the fact that all arrays of references are considered concrete type []Object;)
      Specified by:
      getConcreteType in interface InstanceKey
      Returns:
      the concrete type allocated
    • getNode

      public CGNode getNode()
      Specified by:
      getNode in interface InstanceKeyWithNode
      Returns:
      the call graph node which contains this allocation