java.lang.Object
io.opentelemetry.javaagent.tooling.muzzle.references.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 Details

    • 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.
    • isConstructor

      public boolean isConstructor()
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object