Class BaseCallSiteReference

java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseCallSiteReference
All Implemented Interfaces:
CallSiteReference, Reference
Direct Known Subclasses:
BuilderCallSiteReference, DexBackedCallSiteReference, ImmutableCallSiteReference

public abstract class BaseCallSiteReference extends BaseReference implements CallSiteReference
  • Constructor Details

    • BaseCallSiteReference

      public BaseCallSiteReference()
  • Method Details

    • hashCode

      public int hashCode()
      Description copied from interface: CallSiteReference
      Returns a hashcode for this CallSiteReference. This hashCode is defined to be the following:
       
       int hashCode = getName().hashCode();
       hashCode = hashCode*31 + getMethodHandle().hashCode();
       hashCode = hashCode*31 + getMethodName().hashCode();
       hashCode = hashCode*31 + getMethodProto().hashCode();
       hashCode = hashCode*31 + getExtraArguments().hashCode();
       
      Specified by:
      hashCode in interface CallSiteReference
      Overrides:
      hashCode in class Object
      Returns:
      The hash code value for this MethodReference
    • equals

      public boolean equals(Object o)
      Description copied from interface: CallSiteReference
      Compares this CallSiteReference to another CallSiteReference for equality. This CallSiteReference is equal to another CallSiteReference if all of its fields are equal. That is, if the return values of getMethodHandle(), getMethodName(), getMethodProto() and getExtraArguments() are all equal.
      Specified by:
      equals in interface CallSiteReference
      Overrides:
      equals in class Object
      Parameters:
      o - The object to be compared for equality with this CallSiteReference
      Returns:
      true if the specified object is equal to this CallSiteReference
    • toString

      public String toString()
      Overrides:
      toString in class Object