Top Description Methods
jakarta.enterprise.lang.model.declarations

public Interface RecordComponentInfo

extends DeclarationInfo
Imports
jakarta.enterprise.lang.model.types.Type

A record component, declared in some record.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public MethodInfo

Returns:

the accessor method, never null
accessor
()

Returns the accessor method corresponding to this record component.

public default RecordComponentInfo
public ClassInfo

Returns:

the record that declares this component, never null
declaringRecord
()

Returns the record that declares this component.

public FieldInfo

Returns:

the field, never null
field
()

Returns the field corresponding to this record component.

public default DeclarationInfo.Kind
kind()

Implements jakarta.enterprise.lang.model.declarations.DeclarationInfo.kind.

Returns the kind of this declaration.

public String

Returns:

the name of this record component, never null
name
()

Returns the name of this record component.

public Type

Returns:

the type of this record component, never null
type
()

Returns the type of this record component.

Inherited from jakarta.enterprise.lang.model.declarations.DeclarationInfo:
asClassasDeclarationasFieldasMethodasPackageasParameterasTypeisClassisDeclarationisFieldisMethodisPackageisParameterisRecordComponentisType

Method Detail

accessorback to summary
public MethodInfo accessor()

Returns the accessor method corresponding to this record component.

Returns:MethodInfo

the accessor method, never null

asRecordComponentback to summary
public default RecordComponentInfo asRecordComponent()

Overrides default jakarta.enterprise.lang.model.declarations.DeclarationInfo.asRecordComponent.

Doc from jakarta.enterprise.lang.model.declarations.DeclarationInfo.asRecordComponent.

Returns this declaration as a record component.

Returns:RecordComponentInfo

this record component, never null

Annotations
@Override
declaringRecordback to summary
public ClassInfo declaringRecord()

Returns the record that declares this component.

Returns:ClassInfo

the record that declares this component, never null

fieldback to summary
public FieldInfo field()

Returns the field corresponding to this record component.

Returns:FieldInfo

the field, never null

kindback to summary
public default DeclarationInfo.Kind kind()

Implements jakarta.enterprise.lang.model.declarations.DeclarationInfo.kind.

Doc from jakarta.enterprise.lang.model.declarations.DeclarationInfo.kind.

Returns the kind of this declaration.

Returns:DeclarationInfo.Kind

the kind of this declaration

Annotations
@Override
nameback to summary
public String name()

Returns the name of this record component.

Returns:String

the name of this record component, never null

typeback to summary
public Type type()

Returns the type of this record component.

Returns:Type

the type of this record component, never null