Class FieldRef
- java.lang.Object
-
- io.opentelemetry.javaagent.extension.muzzle.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 boolean
equals(Object obj)
String
getDescriptor()
Returns this field's type descriptor.Set<Flag>
getFlags()
Returns modifier flags of this field.String
getName()
Returns the field name.Set<Source>
getSources()
Returns information about code locations where this field was referenced.int
hashCode()
boolean
isDeclared()
Denotes whether this field is declared in the class reference it is a part of.String
toString()
-
-
-
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. Iffalse
then this field is just used and most likely is declared in the super class.
-
-