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 booleanequals(java.lang.Object o)Compares this CallSiteReference to another CallSiteReference for equality.inthashCode()Returns a hashcode for this CallSiteReference.java.lang.StringtoString()-
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:CallSiteReferenceReturns 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:
hashCodein interfaceCallSiteReference- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code value for this MethodReference
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:CallSiteReferenceCompares 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:
equalsin interfaceCallSiteReference- Overrides:
equalsin 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:
toStringin classjava.lang.Object
-
-