Interface RecordComponentInfo
- All Superinterfaces:
AttributedElement, ClassFileElement
Models a single record component in the
RecordAttribute
.
SignatureAttribute
, RuntimeVisibleAnnotationsAttribute
,
RuntimeInvisibleAnnotationsAttribute
, RuntimeVisibleTypeAnnotationsAttribute
, and RuntimeInvisibleTypeAnnotationsAttribute
are the only predefined attributes
that may exist on record components.
- See Java Virtual Machine Specification:
-
4.7.30 The
Record
Attribute - Since:
- 24
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field descriptor string of this component.default ClassDesc
Returns the symbolic field descriptor of this component.name()
Returns the name of this component.static RecordComponentInfo
Returns a record component description.static RecordComponentInfo
Returns a record component description.static RecordComponentInfo
Returns a record component description.static RecordComponentInfo
Returns a record component description.Methods inherited from interface AttributedElement
attributes, findAttribute, findAttributes
-
Method Details
-
name
-
descriptor
-
descriptorSymbol
-
of
Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component field descriptor stringattributes
- the component attributes- Returns:
- a record component description
-
of
Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component field descriptor stingattributes
- the component attributes- Returns:
- a record component description
-
of
Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component symbolic field descriptorattributes
- the component attributes- Returns:
- a record component description
-
of
Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component symbolic field descriptorattributes
- the component attributes- Returns:
- a record component description
-