java.lang.Object
io.opentelemetry.javaagent.tooling.muzzle.references.FieldRef

public final class FieldRef extends Object
Represents a reference to a field 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 field was referenced.
    • getFlags

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

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

      public String getDescriptor()
      Returns this field's type descriptor.
    • isDeclared

      public boolean isDeclared()
      Denotes whether this field is declared in the class reference it is a part of. If false then this field is just used and most likely is declared in the super class.
    • 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