Package net.bytebuddy.description.type
Interface RecordComponentDescription.ForLoadedRecordComponent.RecordComponent
- Enclosing class:
- RecordComponentDescription.ForLoadedRecordComponent
@Proxied("java.lang.reflect.RecordComponent")
protected static interface RecordComponentDescription.ForLoadedRecordComponent.RecordComponent
A dispatcher for accessing methods of
java.lang.reflect.RecordComponent
.-
Method Summary
Modifier and TypeMethodDescriptiongetAccessor
(Object value) Resolves a record component's accessor method.getAnnotatedType
(Object value) Resolves a record component's annotated type.Class<?>
getDeclaringRecord
(Object value) Resolves a record component's declaring type.getGenericSignature
(Object value) Returns the record component type's generic signature.getGenericType
(Object value) Resolves a record component's generic type.Resolves a record component's name.Class<?>
Resolves a record component's type.boolean
isInstance
(Object instance) Checks if the supplied instance is a record component.
-
Method Details
-
isInstance
Checks if the supplied instance is a record component.- Parameters:
instance
- The instance to evaluate.- Returns:
true
if the supplied instance is a record component.
-
getName
Resolves a record component's name.- Parameters:
value
- The record component to resolve the name for.- Returns:
- The record component's name.
-
getDeclaringRecord
Resolves a record component's declaring type.- Parameters:
value
- The record component to resolve the declared type for.- Returns:
- The record component's declaring type.
-
getAccessor
Resolves a record component's accessor method.- Parameters:
value
- The record component to resolve the accessor method for.- Returns:
- The record component's accessor method.
-
getType
Resolves a record component's type.- Parameters:
value
- The record component to resolve the type for.- Returns:
- The record component's type.
-
getGenericType
Resolves a record component's generic type.- Parameters:
value
- The record component to resolve the generic type for.- Returns:
- The record component's generic type.
-
getGenericSignature
Returns the record component type's generic signature.- Parameters:
value
- The record component to resolve the generic signature for.- Returns:
- The record component type's generic signature or
null
if no signature is defined.
-
getAnnotatedType
Resolves a record component's annotated type.- Parameters:
value
- The record component to resolve the annotated type for.- Returns:
- The record component's annotated type.
-