Module jakarta.cdi.lang.model
Interface RecordComponentInfo
- All Superinterfaces:
AnnotationTarget
,DeclarationInfo
A record component, declared in some record.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfo
DeclarationInfo.Kind
-
Method Summary
Modifier and TypeMethodDescriptionaccessor()
Returns the accessor method corresponding to this record component.default RecordComponentInfo
Returns this declaration as a record component.Returns the record that declares this component.field()
Returns the field corresponding to this record component.default DeclarationInfo.Kind
kind()
Returns the kind of this declaration.name()
Returns the name of this record component.type()
Returns the type of this record component.Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTarget
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
Methods inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfo
asClass, asDeclaration, asField, asMethod, asPackage, asParameter, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isType
-
Method Details
-
name
String name()Returns the name of this record component.- Returns:
- the name of this record component, never
null
-
type
-
field
FieldInfo field()Returns the field corresponding to this record component.- Returns:
- the field, never
null
-
accessor
MethodInfo accessor()Returns the accessor method corresponding to this record component.- Returns:
- the accessor method, never
null
-
declaringRecord
-
kind
Description copied from interface:DeclarationInfo
Returns the kind of this declaration.- Specified by:
kind
in interfaceDeclarationInfo
- Returns:
- the kind of this declaration
-
asRecordComponent
Description copied from interface:DeclarationInfo
Returns this declaration as a record component.- Specified by:
asRecordComponent
in interfaceDeclarationInfo
- Returns:
- this record component, never
null
-