1 package Analysis.OwnershipAnalysis;
3 import IR.TypeDescriptor;
5 public class EffectsKey {
8 private TypeDescriptor td;
10 public EffectsKey(String fd, TypeDescriptor td) {
15 public String getFieldDescriptor() {
19 public TypeDescriptor getTypeDescriptor() {
23 public String toString() {
24 return "(" + td + ")" + fd;
27 public int hashCode() {
32 hash = hash * 31 + fd.hashCode();
36 hash += td.getSymbol().hashCode();
43 public boolean equals(Object o) {
49 if (!(o instanceof EffectsKey)) {
53 EffectsKey in = (EffectsKey) o;
55 if (fd.equals(in.getFieldDescriptor())
56 && td.getSymbol().equals(in.getTypeDescriptor().getSymbol())) {