1 package Analysis.OwnershipAnalysis;
3 import Analysis.MLP.AccKey;
4 import IR.TypeDescriptor;
6 public class EffectsKey {
9 private TypeDescriptor td;
11 public EffectsKey(String fd, TypeDescriptor td) {
16 public String getFieldDescriptor() {
20 public TypeDescriptor getTypeDescriptor() {
24 public String toString() {
25 return "(" + td + ")" + fd;
28 public int hashCode() {
33 hash = hash * 31 + fd.hashCode();
37 hash += td.getSymbol().hashCode();
44 public boolean equals(Object o) {
50 if (!(o instanceof EffectsKey)) {
54 EffectsKey in = (EffectsKey) o;
56 if (fd.equals(in.getFieldDescriptor())
57 && td.getSymbol().equals(in.getTypeDescriptor().getSymbol())) {