- 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.
- Since:
- 24
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field descriptor string of this component.default ClassDescReturns the symbolic field descriptor of this component.name()Returns the name of this component.static RecordComponentInfoReturns a record component description.static RecordComponentInfoReturns a record component description.static RecordComponentInfoReturns a record component description.static RecordComponentInfoReturns a record component description.Methods inherited from interface io.smallrye.classfile.AttributedElement
attributes, findAttribute, findAttributes
-
Method Details
-
name
Utf8Entry name()Returns the name of this component.- Returns:
- the name of this component
- See Also:
-
descriptor
Utf8Entry descriptor()Returns the field descriptor string of this component.- API Note:
- A record component may have a generic type; this information is stored
in the
Signatureattribute in this component. - Returns:
- the field descriptor string of this component
- See Also:
-
descriptorSymbol
Returns the symbolic field descriptor of this component.- API Note:
- A record component may have a generic type; this information is stored
in the
Signatureattribute in this component. - Returns:
- the symbolic field descriptor of this component
- See Also:
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component field descriptor stringattributes- the component attributes- Returns:
- a record component description
- Throws:
IllegalArgumentException- if the number of attributes exceeds the limit ofu2
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component field descriptor stingattributes- the component attributes- Returns:
- a record component description
- Throws:
IllegalArgumentException- if the number of attributes exceeds the limit ofu2
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component symbolic field descriptorattributes- the component attributes- Returns:
- a record component description
- Throws:
IllegalArgumentException- if the number of attributes exceeds the limit ofu2
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component symbolic field descriptorattributes- the component attributes- Returns:
- a record component description
- Throws:
IllegalArgumentException- if the number of attributes exceeds the limit ofu2
-