Package org.eclipse.aether.tools
Record Class ConfigurationCollectorDoclet.MethodReference
java.lang.Object
java.lang.Record
org.eclipse.aether.tools.ConfigurationCollectorDoclet.MethodReference
- Record Components:
fullyQualifiedClassName- the fully qualified name of the class containing the methodmethodName- the name of the methodfullyQualifiedParameterTypes- a list of fully qualified names (for declared types) or simple names (for primitive types) of the parameter types of the method
- Enclosing class:
ConfigurationCollectorDoclet
protected static record ConfigurationCollectorDoclet.MethodReference(String fullyQualifiedClassName, String methodName, List<String> fullyQualifiedParameterTypes)
extends Record
Represents a reference to a method, including the fully qualified class name, method name, and parameter types.
This is supposed to be unique as well as canonical.
The signature within a Javadoc link is not normalized (e.g. may contain spaces or not, may contain argument names or not)
so we need to resolve the reference to get a unique representation of the method.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodReference(String fullyQualifiedClassName, String methodName, List<String> fullyQualifiedParameterTypes) Creates an instance of aMethodReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullyQualifiedClassNamerecord component.Returns the value of thefullyQualifiedParameterTypesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodReference
protected MethodReference(String fullyQualifiedClassName, String methodName, List<String> fullyQualifiedParameterTypes) Creates an instance of aMethodReferencerecord class.- Parameters:
fullyQualifiedClassName- the value for thefullyQualifiedClassNamerecord componentmethodName- the value for themethodNamerecord componentfullyQualifiedParameterTypes- the value for thefullyQualifiedParameterTypesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fullyQualifiedClassName
Returns the value of thefullyQualifiedClassNamerecord component.- Returns:
- the value of the
fullyQualifiedClassNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
fullyQualifiedParameterTypes
Returns the value of thefullyQualifiedParameterTypesrecord component.- Returns:
- the value of the
fullyQualifiedParameterTypesrecord component
-