Class MethodRef


  • public final class MethodRef
    extends Object
    Represents a reference to a method used in the instrumentation advice or helper class code. Part of a ClassRef.

    This class is used in the auto-generated InstrumentationModule.getMuzzleReferences() method, it is not meant to be used directly by agent extension developers.

    • Method Detail

      • getSources

        public Set<Source> getSources()
        Returns information about code locations where this method was referenced.
      • getFlags

        public Set<Flag> getFlags()
        Returns modifier flags of this method.
      • getName

        public String getName()
        Returns the method name.
      • getDescriptor

        public String getDescriptor()
        Returns this method's type descriptor.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object