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, isType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
java.lang.String name()
null
Type type()
null
FieldInfo field()
null
MethodInfo accessor()
null
ClassInfo declaringRecord()
null
default DeclarationInfo.Kind kind()
DeclarationInfo
kind
in interface DeclarationInfo
default RecordComponentInfo asRecordComponent()
DeclarationInfo
asRecordComponent
in interface DeclarationInfo
null