Class FieldRef
- 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 aClassRef.This class is used in the auto-generated
InstrumentationModule#getMuzzleReferences()method, it is not meant to be used directly by agent extension developers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescriptor()Returns this field's type descriptor.Set<Flag>getFlags()Returns modifier flags of this field.StringgetName()Returns the field name.Set<Source>getSources()Returns information about code locations where this field was referenced.inthashCode()booleanisDeclared()Denotes whether this field is declared in the class reference it is a part of.StringtoString()
-
-
-
Method Detail
-
getSources
public Set<Source> getSources()
Returns information about code locations where this field was referenced.
-
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. Iffalsethen this field is just used and most likely is declared in the super class.
-
-