Method which holds a
reference to the method's declaring class,
name, and parameter types.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | declaringClass
Record Component accessed by declaringClass(). the method's declaring class |
| private final String | methodName
Record Component accessed by methodName(). the name of the method |
| private final Class | parameterTypes
Record Component accessed by parameterTypes(). the types of parameters accepted by the method |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static MethodDescriptor | Returns: a newMethodDescriptor; never nullthe bean name in the factory (for debugging purposes) beanName, Class<?> the bean class beanClass, String the name of the method methodName)Create a |
| public Class | declaringClass()
Record Component getter of declaringClass. Record Component the method's declaring class |
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. |
| public final int | |
| public String | |
| public Class | parameterTypes()
Record Component getter of parameterTypes. Record Component the types of parameters accepted by the method |
| public final String | toString()
Implements abstract java. |
| declaringClass | back to summary |
|---|---|
| private final Class<?> declaringClass Record Component accessed by declaringClass(). the method's declaring class | |
| methodName | back to summary |
|---|---|
| private final String methodName Record Component accessed by methodName(). the name of the method | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes Record Component accessed by parameterTypes(). the types of parameters accepted by the method | |
| MethodDescriptor | back to summary |
|---|---|
| pack-priv MethodDescriptor(Class<?> declaringClass, String methodName, Class<?>... parameterTypes) | |
| create | back to summary |
|---|---|
| pack-priv static MethodDescriptor create(String beanName, Class<?> beanClass, String methodName) Create a The supplied If the method name is fully qualified, this utility will parse the
method name and its declaring class from the qualified method name and then
attempt to load the method's declaring class using the
| |
| declaringClass | back to summary |
|---|---|
| public Class Record Component getter of declaringClass.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| methodName | back to summary |
|---|---|
| public String methodName() Record Component getter of methodName.
| |
| parameterTypes | back to summary |
|---|---|
| public Class Record Component getter of parameterTypes.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |