public static enum RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm extends Enum<RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm> implements RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.CreationAction, RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForJava14CapableVm, RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
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.
|
static RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm INSTANCE
public static RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm[] values()
for (RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm c : RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForLegacyVm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isInstance(Object instance)
isInstance
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
instance
- The instance to evaluate.true
if the supplied instance is a record component.public Object[] getRecordComponents(Class<?> type)
getRecordComponents
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
type
- The type for which to read the record components.public boolean isRecord(Class<?> type)
isRecord
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
type
- The type to resolve.true
if the supplied type is a record.public String getName(Object recordComponent)
getName
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
recordComponent
- The record component to resolve the name for.public Class<?> getDeclaringType(Object recordComponent)
getDeclaringType
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
recordComponent
- The record component to resolve the declared type for.public Method getAccessor(Object recordComponent)
getAccessor
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
recordComponent
- The record component to resolve the accessor method for.public Class<?> getType(Object recordComponent)
getType
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
recordComponent
- The record component to resolve the type for.public Type getGenericType(Object recordComponent)
getGenericType
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
recordComponent
- The record component to resolve the generic type for.public String getGenericSignature(Object recordComponent)
getGenericSignature
in interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
recordComponent
- 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.Dispatcher
recordComponent
- The record component to resolve the annotated type for.Copyright © 2014–2020. All rights reserved.