com.ibm.wala.ipa.callgraph.propagation
Class PointerKeyComparator

java.lang.Object
  extended by com.ibm.wala.ipa.callgraph.propagation.PointerKeyComparator
All Implemented Interfaces:
java.util.Comparator

public class PointerKeyComparator
extends java.lang.Object
implements java.util.Comparator


Constructor Summary
PointerKeyComparator(IClassHierarchy cha)
           
 
Method Summary
 int compare(java.lang.Object key1, java.lang.Object key2)
           
protected  int compareConcreteTypes(IClass k1, IClass k2)
           
protected  int compareFields(IField if1, IField if2)
           
protected  int compareInstanceKeys(InstanceKey k1, InstanceKey k2)
           
protected  int compareOtherKeys(java.lang.Object key1, java.lang.Object key2)
           
protected  int comparePrimitives(TypeReference r1, TypeReference r2)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointerKeyComparator

public PointerKeyComparator(IClassHierarchy cha)
Method Detail

comparePrimitives

protected int comparePrimitives(TypeReference r1,
                                TypeReference r2)

compareConcreteTypes

protected int compareConcreteTypes(IClass k1,
                                   IClass k2)

compareInstanceKeys

protected int compareInstanceKeys(InstanceKey k1,
                                  InstanceKey k2)

compareFields

protected int compareFields(IField if1,
                            IField if2)

compare

public int compare(java.lang.Object key1,
                   java.lang.Object key2)
Specified by:
compare in interface java.util.Comparator

compareOtherKeys

protected int compareOtherKeys(java.lang.Object key1,
                               java.lang.Object key2)

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object