Package soot
Class EquivalentValue
- java.lang.Object
-
- soot.EquivalentValue
-
- All Implemented Interfaces:
Serializable,EquivTo,Switchable,Value
- Direct Known Subclasses:
CachedEquivalentValue
public class EquivalentValue extends Object implements Value
Encapsulates the Value class, but uses EquivTo for equality comparisons. Also uses equivHashCode as its hash code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EquivalentValue(Value v)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.Objectclone()Returns a clone of this Value.booleanequals(Object o)booleanequalsToValue(Value v)compares the encapsulated value withv, usingequalsintequivHashCode()Returns a (not necessarily fixed) hash code for this object.booleanequivTo(Object o)Returns true if this object is equivalent to o.booleanequivToValue(Value v)compares the encapsulated value withv, usingequivToValuegetDeepestValue()Deprecated.TypegetType()Returns the Soot type of this Value.List<ValueBox>getUseBoxes()Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.ValuegetValue()inthashCode()StringtoString()voidtoString(UnitPrinter up)
-
-
-
Constructor Detail
-
EquivalentValue
public EquivalentValue(Value v)
-
-
Method Detail
-
equivToValue
public boolean equivToValue(Value v)
compares the encapsulated value withv, usingequivTo
-
equalsToValue
public boolean equalsToValue(Value v)
compares the encapsulated value withv, usingequals
-
getDeepestValue
@Deprecated public Value getDeepestValue()
Deprecated.- See Also:
getValue()
-
getValue
public Value getValue()
-
getUseBoxes
public List<ValueBox> getUseBoxes()
Description copied from interface:ValueReturns a List of boxes corresponding to Values which are used by (ie contained within) this Value.- Specified by:
getUseBoxesin interfaceValue
-
getType
public Type getType()
Description copied from interface:ValueReturns the Soot type of this Value.
-
equivTo
public boolean equivTo(Object o)
Description copied from interface:EquivToReturns true if this object is equivalent to o.
-
equivHashCode
public int equivHashCode()
Description copied from interface:EquivToReturns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects.- Specified by:
equivHashCodein interfaceEquivTo
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceSwitchable
-
toString
public void toString(UnitPrinter up)
-
-