Class 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 Detail

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

        public int hashCode()
        Overrides:
        hashCode in class Object