Package sootup.core.jimple.common.ref
Class JInstanceFieldRef
java.lang.Object
sootup.core.jimple.common.ref.JFieldRef
sootup.core.jimple.common.ref.JInstanceFieldRef
- All Implemented Interfaces:
EquivTo,LValue,ConcreteRef,Ref,Value,JimpleIR,Acceptor<RefVisitor>
-
Constructor Summary
ConstructorsConstructorDescriptionJInstanceFieldRef(@NonNull Local base, @NonNull FieldSignature fieldSig) Create a reference to a class' instance field. -
Method Summary
Modifier and TypeMethodDescription<V extends RefVisitor>
Vaccept(@NonNull V v) Called when this object is visited.voidcollectUses(List<Value> collector) Collects all values used by this value into the given list.intReturns a hash code for this object, consistent with structural equality.booleanequivTo(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.getBase()toString()voidtoString(@NonNull StmtPrinter up) Appends a string representation of this value to the given printer.@NonNull JInstanceFieldRef@NonNull JInstanceFieldRefwithFieldSignature(@NonNull FieldSignature fieldSignature) Methods inherited from class sootup.core.jimple.common.ref.JFieldRef
equals, getFieldSignature, getType
-
Constructor Details
-
JInstanceFieldRef
Create a reference to a class' instance field.- Parameters:
base- the base value of the fieldfieldSig- the field sig
-
-
Method Details
-
toString
-
toString
Description copied from interface:ValueAppends a string representation of this value to the given printer. -
getBase
-
collectUses
Description copied from interface:ValueCollects all values used by this value into the given list. -
accept
Description copied from interface:AcceptorCalled when this object is visited.- Type Parameters:
V- the concrete visitor type- Parameters:
v- the visitor processing this object- Returns:
- the visitor after processing
-
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator.- Parameters:
o- the object to compare withcomparator- the comparator defining the equivalence relation- Returns:
- true if this object is structurally equivalent to o under the given comparator
-
equivHashCode
public int equivHashCode()Returns a hash code for this object, consistent with structural equality.- Returns:
- a structural hash code consistent with equivTo
-
withBase
-
withFieldSignature
- Specified by:
withFieldSignaturein classJFieldRef
-