Class BaseCallSiteReference

    • Constructor Detail

      • BaseCallSiteReference

        public BaseCallSiteReference()
    • 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 interface CallSiteReference
        Overrides:
        hashCode in class java.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 interface CallSiteReference
        Overrides:
        equals in class java.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 class java.lang.Object