Class JInstanceFieldRef

java.lang.Object
sootup.core.jimple.common.ref.JFieldRef
sootup.core.jimple.common.ref.JInstanceFieldRef
All Implemented Interfaces:
EquivTo, LValue, Value, ConcreteRef, Ref, 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)
    • getBase

      public Local getBase()
    • getUses

      public @NonNull Stream<Value> getUses()
      Description copied from interface: Value
      Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference.
      Returns:
    • accept

      public <V extends RefVisitor> V accept(@NonNull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
    • 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.
    • equivHashCode

      public int equivHashCode()
      Returns a hash code for this object, consistent with structural equality.
    • withBase

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

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