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>

public final class JInstanceFieldRef extends JFieldRef
  • Constructor Details

    • JInstanceFieldRef

      public JInstanceFieldRef(@NonNull Local base, @NonNull FieldSignature fieldSig)
      Create a reference to a class' instance field.
      Parameters:
      base - the base value of the field
      fieldSig - the field sig
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public void toString(@NonNull StmtPrinter up)
      Description copied from interface: Value
      Appends a string representation of this value to the given printer.
    • getBase

      public Local getBase()
    • collectUses

      public void collectUses(List<Value> collector)
      Description copied from interface: Value
      Collects all values used by this value into the given list.
    • accept

      public <V extends RefVisitor> V accept(@NonNull V v)
      Description copied from interface: Acceptor
      Called 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

      public boolean equivTo(Object o, @NonNull JimpleComparator comparator)
      Description copied from interface: EquivTo
      Returns true if this object is equivalent to o according to the given comparator.
      Parameters:
      o - the object to compare with
      comparator - 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

      public @NonNull JInstanceFieldRef withBase(@NonNull Local base)
    • withFieldSignature

      public @NonNull JInstanceFieldRef withFieldSignature(@NonNull FieldSignature fieldSignature)
      Specified by:
      withFieldSignature in class JFieldRef