@HashCodeAndEqualsPlugin.Enhance public static class RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForJava14CapableVm extends Object implements RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.CreationAction, RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForJava14CapableVm, RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm| Modifier | Constructor and Description |
|---|---|
protected |
ForJava14CapableVm(Class<?> recordComponent,
Method getRecordComponents,
Method isRecord,
Method getName,
Method getDeclaringType,
Method getAccessor,
Method getType,
Method getGenericType,
Method getGenericSignature,
Method getAnnotatedType)
Creates a dispatcher for a Java 14 capable VM.
|
| 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.
|
protected ForJava14CapableVm(Class<?> recordComponent, Method getRecordComponents, Method isRecord, Method getName, Method getDeclaringType, Method getAccessor, Method getType, Method getGenericType, Method getGenericSignature, Method getAnnotatedType)
recordComponent - The java.lang.reflect.RecordComponent type.getRecordComponents - The java.lang.Class#getRecordComponents() method.isRecord - The java.lang.Class#isRecord() method.getName - The java.lang.reflect.RecordComponent#getName() method.getDeclaringType - The java.lang.reflect.RecordComponent#getDeclaringType() method.getAccessor - The java.lang.reflect.RecordComponent#getAccessor() method.getType - The java.lang.reflect.RecordComponent#getType() method.getGenericType - The java.lang.reflect.RecordComponent#getGenericType() method.getGenericSignature - The java.lang.reflect.RecordComponent#getGenericSignature() method.getAnnotatedType - The java.lang.reflect.RecordComponent#getAnnotatedType() method.public boolean isInstance(Object instance)
isInstance in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcherinstance - The instance to evaluate.true if the supplied instance is a record component.public Object[] getRecordComponents(Class<?> type)
getRecordComponents in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatchertype - The type for which to read the record components.public boolean isRecord(Class<?> type)
isRecord in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatchertype - The type to resolve.true if the supplied type is a record.public String getName(Object recordComponent)
getName in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the name for.public Class<?> getDeclaringType(Object recordComponent)
getDeclaringType in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the declared type for.public Method getAccessor(Object recordComponent)
getAccessor in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the accessor method for.public Class<?> getType(Object recordComponent)
getType in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the type for.public Type getGenericType(Object recordComponent)
getGenericType in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the generic type for.public String getGenericSignature(Object recordComponent)
getGenericSignature in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the generic signature for.null if no signature is defined.public AnnotatedElement getAnnotatedType(Object recordComponent)
getAnnotatedType in interface RecordComponentDescription.ForLoadedRecordComponent.DispatcherrecordComponent - The record component to resolve the annotated type for.Copyright © 2014–2021. All rights reserved.