Interface RecordComponentInfo
- 
- All Superinterfaces:
- AnnotationTarget,- DeclarationInfo
 
 public interface RecordComponentInfo extends 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.DeclarationInfoDeclarationInfo.Kind
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MethodInfoaccessor()Returns the accessor method corresponding to this record component.default RecordComponentInfoasRecordComponent()Returns this declaration as a record component.ClassInfodeclaringRecord()Returns the record that declares this component.FieldInfofield()Returns the field corresponding to this record component.default DeclarationInfo.Kindkind()Returns the kind of this declaration.Stringname()Returns the name of this record component.Typetype()Returns the type of this record component.- 
Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTargetannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
 - 
Methods inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfoasClass, asDeclaration, asField, asMethod, asPackage, asParameter, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isType
 
- 
 
- 
- 
- 
Method Detail- 
nameString name() Returns the name of this record component.- Returns:
- the name of this record component, never null
 
 - 
typeType type() Returns the type of this record component.- Returns:
- the type of this record component, never null
 
 - 
fieldFieldInfo field() Returns the field corresponding to this record component.- Returns:
- the field, never null
 
 - 
accessorMethodInfo accessor() Returns the accessor method corresponding to this record component.- Returns:
- the accessor method, never null
 
 - 
declaringRecordClassInfo declaringRecord() Returns the record that declares this component.- Returns:
- the record that declares this component, never null
 
 - 
kinddefault DeclarationInfo.Kind kind() Description copied from interface:DeclarationInfoReturns the kind of this declaration.- Specified by:
- kindin interface- DeclarationInfo
- Returns:
- the kind of this declaration
 
 - 
asRecordComponentdefault RecordComponentInfo asRecordComponent() Description copied from interface:DeclarationInfoReturns this declaration as a record component.- Specified by:
- asRecordComponentin interface- DeclarationInfo
- Returns:
- this record component, never null
 
 
- 
 
-