From f9842440c79c9ad2a1d1b0ae451e523d2b6331f6 Mon Sep 17 00:00:00 2001 From: jjenista Date: Fri, 5 Sep 2008 17:33:23 +0000 Subject: [PATCH] never needed this --- .../OwnershipAnalysis/SubstitutionTuple.java | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 Robust/src/Analysis/OwnershipAnalysis/SubstitutionTuple.java diff --git a/Robust/src/Analysis/OwnershipAnalysis/SubstitutionTuple.java b/Robust/src/Analysis/OwnershipAnalysis/SubstitutionTuple.java deleted file mode 100644 index 62ddef67..00000000 --- a/Robust/src/Analysis/OwnershipAnalysis/SubstitutionTuple.java +++ /dev/null @@ -1,59 +0,0 @@ -package Analysis.OwnershipAnalysis; - -import IR.*; -import IR.Flat.*; -import java.util.*; -import java.io.*; - - -// a change touple is a pair that indicates if the -// first TokenTupleSet is found in a ReachabilitySet, -// then the second TokenTupleSet should be added - -// THIS CLASS IS IMMUTABLE! - -public class ChangeTuple extends Canonical -{ - private TokenTupleSet toMatch; - private TokenTupleSet toAdd; - - public ChangeTuple(TokenTupleSet toMatch, - TokenTupleSet toAdd) { - this.toMatch = toMatch; - this.toAdd = toAdd; - } - - public ChangeTuple makeCanonical() { - return (ChangeTuple) Canonical.makeCanonical(this); - } - - public TokenTupleSet getSetToMatch() { - return toMatch; - } - public TokenTupleSet getSetToAdd() { - return toAdd; - } - - public boolean equals(Object o) { - if( o == null ) { - return false; - } - - if( !(o instanceof ChangeTuple) ) { - return false; - } - - ChangeTuple ct = (ChangeTuple) o; - - return toMatch.equals(ct.getSetToMatch() ) && - toAdd.equals(ct.getSetToAdd() ); - } - - public int hashCode() { - return toMatch.hashCode() + toAdd.hashCode(); - } - - public String toString() { - return new String("<"+toMatch+" -> "+toAdd+">"); - } -} -- 2.34.1