RecordComponent provides information about, and dynamic access to, a
component of a record class.
Class#getRecordComponents(), java.lang.Record
| Modifier and Type | Field and Description |
|---|---|
| private Method | |
| private byte[] | |
| private Class | |
| private transient volatile Map | |
| private transient volatile FieldRepository | |
| private String | |
| private RecordComponent | |
| private String | |
| private Class | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Map | |
| public Method | Returns: aMethod that represents the accessor for this record
componentReturns a |
| public AnnotatedType | Returns: an object representing the declared type of this record componentReturns an |
| public <T extends Annotation> T | getAnnotation(Class<T> annotationClass)
Implements java. Returns this element's annotation for the specified type if such an annotation is present, else null. |
| public Annotation[] | getAnnotations()
Implements java. Returns annotations that are present on this element. |
| public Annotation[] | getDeclaredAnnotations()
Implements java. Returns annotations that are directly present on this element. |
| public Class | Returns: The record class declaring this record component.Returns the record class which declares this record component. |
| private GenericsFactory | |
| private FieldRepository | |
| public String | Returns: aString that describes the generic type signature for
this record componentReturns a |
| public Type | Returns: aType object that represents the declared type for
this record componentReturns a |
| public String | |
| public Class | Returns: aClass identifying the declared type of the component
represented by this record componentReturns a |
| public String | Returns: a string describing this record componentOverrides java. Returns a string describing this record component. |
| accessor | back to summary |
|---|---|
| private Method accessor | |
| annotations | back to summary |
|---|---|
| private byte[] annotations | |
| clazz | back to summary |
|---|---|
| private Class<?> clazz | |
| declaredAnnotations | back to summary |
|---|---|
| private transient volatile Map<Class<? extends Annotation>, Annotation> declaredAnnotations | |
| genericInfo | back to summary |
|---|---|
| private transient volatile FieldRepository genericInfo | |
| name | back to summary |
|---|---|
| private String name | |
| root | back to summary |
|---|---|
| private RecordComponent root | |
| signature | back to summary |
|---|---|
| private String signature | |
| type | back to summary |
|---|---|
| private Class<?> type | |
| typeAnnotations | back to summary |
|---|---|
| private byte[] typeAnnotations | |
| RecordComponent | back to summary |
|---|---|
| private RecordComponent() | |
| declaredAnnotations | back to summary |
|---|---|
| private Map | |
| getAccessor | back to summary |
|---|---|
| public Method getAccessor() Returns a
| |
| getAnnotatedType | back to summary |
|---|---|
| public AnnotatedType getAnnotatedType() Returns an
| |
| getAnnotation | back to summary |
|---|---|
| public <T extends Annotation> T getAnnotation(Class<T> annotationClass) Implements java. Doc from java. Returns this element's annotation for the specified type if such an annotation is present, else null. Note that any annotation returned by this method is a declaration annotation.
| |
| getAnnotations | back to summary |
|---|---|
| public Annotation[] getAnnotations() Implements java. Doc from java. Returns annotations that are present on this element. If there are no annotations present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers. Note that any annotations returned by this method are declaration annotations.
| |
| getDeclaredAnnotations | back to summary |
|---|---|
| public Annotation[] getDeclaredAnnotations() Implements java. Doc from java. Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers. Note that any annotations returned by this method are declaration annotations.
| |
| getDeclaringRecord | back to summary |
|---|---|
| public Class Returns the record class which declares this record component.
| |
| getFactory | back to summary |
|---|---|
| private GenericsFactory getFactory() | |
| getGenericInfo | back to summary |
|---|---|
| private FieldRepository getGenericInfo() | |
| getGenericSignature | back to summary |
|---|---|
| public String getGenericSignature() Returns a
| |
| getGenericType | back to summary |
|---|---|
| public Type getGenericType() Returns a If the declared type of the record component is a parameterized type,
the If the type of the underlying record component is a type variable or a parameterized type, it is created. Otherwise, it is resolved.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this record component.
| |
| getType | back to summary |
|---|---|
| public Class Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string describing this record component. The format is the record component type, followed by a space, followed by the name of the record component. For example: java.lang.String name int age
| |