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
RecordAttribute - 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 declared in interface java.lang.classfile.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
-