protected static interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
java.lang.reflect.RecordComponent
.Modifier and Type | Interface and Description |
---|---|
static class |
RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.CreationAction
A creation action for creating a dispatcher.
|
static class |
RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForJava14CapableVm
A dispatcher for a Java 14-capable JVM.
|
static class |
RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm
A dispatcher for a legacy VM that does not support records.
|
Modifier and Type | Method and Description |
---|---|
Method |
getAccessor(Object recordComponent)
Resolves a record component's accessor method.
|
AnnotatedElement |
getAnnotatedType(Object recordComponent)
Resolves a record component's annotated type.
|
Class<?> |
getDeclaringType(Object recordComponent)
Resolves a record component's declaring type.
|
String |
getGenericSignature(Object recordComponent)
Returns the record component type's generic signature.
|
Type |
getGenericType(Object recordComponent)
Resolves a record component's generic type.
|
String |
getName(Object recordComponent)
Resolves a record component's name.
|
Object[] |
getRecordComponents(Class<?> type)
Resolves a type's record components.
|
Class<?> |
getType(Object recordComponent)
Resolves a record component's type.
|
boolean |
isInstance(Object instance)
Checks if the supplied instance is a record component.
|
boolean |
isRecord(Class<?> type)
Checks if the supplied type is a record.
|
boolean isInstance(Object instance)
instance
- The instance to evaluate.true
if the supplied instance is a record component.Object[] getRecordComponents(Class<?> type)
type
- The type for which to read the record components.boolean isRecord(Class<?> type)
type
- The type to resolve.true
if the supplied type is a record.String getName(Object recordComponent)
recordComponent
- The record component to resolve the name for.Class<?> getDeclaringType(Object recordComponent)
recordComponent
- The record component to resolve the declared type for.Method getAccessor(Object recordComponent)
recordComponent
- The record component to resolve the accessor method for.Class<?> getType(Object recordComponent)
recordComponent
- The record component to resolve the type for.Type getGenericType(Object recordComponent)
recordComponent
- The record component to resolve the generic type for.String getGenericSignature(Object recordComponent)
recordComponent
- The record component to resolve the generic signature for.null
if no signature is defined.AnnotatedElement getAnnotatedType(Object recordComponent)
recordComponent
- The record component to resolve the annotated type for.Copyright © 2014–2020. All rights reserved.