Class JThisRef

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

public final class JThisRef extends Object implements IdentityRef
  • Constructor Details

  • 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()
      Description copied from interface: EquivTo
      Returns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects. The contract is defined in JimpleComparator.
      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
    • getUses

      @Nonnull public 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

      @Nonnull public 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>
    • withThisType

      @Nonnull public JThisRef withThisType(@Nonnull ClassType thisType)