Class ClassRef
java.lang.Object
io.opentelemetry.javaagent.tooling.muzzle.references.ClassRef
Represents a reference to a class used in the instrumentation advice or helper class code (or the
helper class itself).
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
Modifier and TypeMethodDescriptionstatic ClassRefBuilderStart building a new reference.Returns the name of this class.Returns the set of references to fields of this class.getFlags()Returns modifier flags of this class.Returns the set of interfaces implemented by this class.Returns the set of references to methods of this class.Returns information about code locations where this class was referenced.Returns the name of the super class, if this class extends one; null otherwise.Create a new reference which combines this reference with another reference of the same type.toString()
-
Method Details
-
builder
Start building a new reference. -
getSources
Returns information about code locations where this class was referenced. -
getFlags
Returns modifier flags of this class. -
getClassName
Returns the name of this class. -
getSuperClassName
Returns the name of the super class, if this class extends one; null otherwise. -
getInterfaceNames
Returns the set of interfaces implemented by this class. -
getFields
Returns the set of references to fields of this class. -
getMethods
Returns the set of references to methods of this class. -
merge
Create a new reference which combines this reference with another reference of the same type.- Parameters:
anotherReference- A reference to the same class.- Returns:
- a new reference which merges the two references.
-
toString
-