Package org.jf.dexlib2.base.reference
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Constructor Summary
Constructors Constructor Description BaseCallSiteReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares this CallSiteReference to another CallSiteReference for equality.int
hashCode()
Returns a hashcode for this CallSiteReference.java.lang.String
toString()
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReference
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.reference.CallSiteReference
getExtraArguments, getMethodHandle, getMethodName, getMethodProto, getName
-
Methods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
-
-
-
Method Detail
-
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 interfaceCallSiteReference
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code value for this MethodReference
-
equals
public boolean equals(java.lang.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 interfaceCallSiteReference
- Overrides:
equals
in classjava.lang.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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-