Class JArrayRef

java.lang.Object
sootup.core.jimple.common.ref.JArrayRef
All Implemented Interfaces:
EquivTo, LValue, Value, ConcreteRef, Ref, Acceptor<RefVisitor>

public final class JArrayRef extends Object implements ConcreteRef, LValue
  • Constructor Details

    • JArrayRef

      public JArrayRef(@NonNull Local base, @NonNull Immediate index)
  • Method Details

    • 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.
      Specified by:
      equivTo in interface EquivTo
    • equivHashCode

      public int equivHashCode()
      Returns a hash code for this object, consistent with structural equality.
      Specified by:
      equivHashCode in interface EquivTo
    • toString

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

      public void toString(@NonNull StmtPrinter up)
      Specified by:
      toString in interface Value
    • getBase

      public @NonNull Local getBase()
    • getIndex

      public @NonNull Immediate getIndex()
    • 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.
      Specified by:
      getUses in interface Value
      Returns:
    • getType

      public @NonNull Type getType()
      Description copied from interface: Value
      Returns the Soot type of this Value.
      Specified by:
      getType in interface Value
    • accept

      public <V extends RefVisitor> V accept(@NonNull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
      Specified by:
      accept in interface Acceptor<RefVisitor>
    • withBase

      public @NonNull JArrayRef withBase(@NonNull Local base)
    • withIndex

      public @NonNull JArrayRef withIndex(@NonNull Immediate index)