1 package Analysis.SSJava;
4 import java.util.Vector;
6 import IR.ClassDescriptor;
8 public class DeltaLocation extends Location {
10 private Vector<Location> operandVec;
12 public DeltaLocation(ClassDescriptor cd) {
14 operandVec = new Vector<Location>();
17 public void addDeltaOperand(Location op) {
21 public List<Location> getDeltaOperandLocationVec() {
25 public boolean equals(Object o) {
27 if (!(o instanceof DeltaLocation)) {
31 DeltaLocation deltaLoc = (DeltaLocation) o;
33 if (deltaLoc.getDeltaOperandLocationVec().equals(getDeltaOperandLocationVec())) {
39 public int hashCode() {
40 int hash = cd.hashCode();
42 hash += operandVec.hashCode();
47 public String toString() {
48 String rtr = "delta(";
50 int tupleSize = operandVec.size();
51 for (int i = 0; i < tupleSize; i++) {
52 Location locElement = operandVec.elementAt(i);