soot
Interface EquivTo
- All Known Subinterfaces:
- AddExpr, AndExpr, ArrayRef, BinopExpr, CastExpr, CaughtExceptionRef, CmpExpr, CmpgExpr, CmplExpr, ConcreteRef, ConditionExpr, DivExpr, EqExpr, Expr, FieldRef, GeExpr, GtExpr, IdentityRef, InstanceFieldRef, InstanceInvokeExpr, InstanceOfExpr, InterfaceInvokeExpr, InvokeExpr, LeExpr, LengthExpr, Local, LtExpr, MulExpr, NeExpr, NegExpr, NewArrayExpr, NewExpr, NewInvokeExpr, NewMultiArrayExpr, OrExpr, Ref, RemExpr, ShlExpr, ShrExpr, SpecialInvokeExpr, StaticInvokeExpr, SubExpr, UnopExpr, UshrExpr, Value, VirtualInvokeExpr, XorExpr
- All Known Implementing Classes:
- SootField, JArrayRef, AbstractInstanceFieldRef, StaticFieldRef
- public interface EquivTo
An alternate equivalence relation
between objects. The standard interpretation will be structural
equality. We also demand that if x.equivTo(y), then x.equivHashCode() ==
y.equivHashCode.
Method Summary |
int |
equivHashCode()
Returns a (not necessarily fixed) hash code for this object. |
boolean |
equivTo(java.lang.Object o)
Returns true if this object is equivalent to o. |
equivTo
public boolean equivTo(java.lang.Object o)
- Returns true if this object is equivalent to o.
equivHashCode
public int equivHashCode()
- Returns a (not necessarily fixed) hash code for this object.
This hash code coincides with equivTo; it is undefined in the
presence of mutable objects.