public interface RecordComponentInfo extends DeclarationInfo
DeclarationInfo.Kind| Modifier and Type | Method and Description |
|---|---|
MethodInfo |
accessor()
Returns the accessor method corresponding to this record component.
|
default RecordComponentInfo |
asRecordComponent()
Returns this declaration as a record component.
|
ClassInfo |
declaringRecord()
Returns the record that declares this component.
|
FieldInfo |
field()
Returns the field corresponding to this record component.
|
default DeclarationInfo.Kind |
kind()
Returns the kind of this declaration.
|
java.lang.String |
name()
Returns the name of this record component.
|
Type |
type()
Returns the type of this record component.
|
asClass, asDeclaration, asField, asMethod, asPackage, asParameter, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isTypeannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationjava.lang.String name()
nullType type()
nullFieldInfo field()
nullMethodInfo accessor()
nullClassInfo declaringRecord()
nulldefault DeclarationInfo.Kind kind()
DeclarationInfokind in interface DeclarationInfodefault RecordComponentInfo asRecordComponent()
DeclarationInfoasRecordComponent in interface DeclarationInfonull