- All Superinterfaces:
AttributedElement,ClassFileElement
- All Known Implementing Classes:
BoundRecordComponentInfo,UnboundAttribute.UnboundRecordComponentInfo
public sealed interface RecordComponentInfo
extends AttributedElement
permits BoundRecordComponentInfo, UnboundAttribute.UnboundRecordComponentInfo
Models a single record component in the
RecordAttribute.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field descriptor of this component.default ClassDescReturns the field descriptor of this component, as a ClassDesc.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 org.glavo.classfile.AttributedElement
attributes, findAttribute, findAttributes
-
Method Details
-
name
Utf8Entry name()Returns the name of this component.- Returns:
- the name of this component
-
descriptor
Utf8Entry descriptor()Returns the field descriptor of this component.- Returns:
- the field descriptor of this component
-
descriptorSymbol
Returns the field descriptor of this component, as a ClassDesc.- Returns:
- the field descriptor of this component, as a ClassDesc
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component field descriptorattributes- the component attributes- Returns:
- a record component description
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component field descriptorattributes- the component attributes- Returns:
- a record component description
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component field descriptorattributes- the component attributes- Returns:
- a record component description
-
of
Returns a record component description.- Parameters:
name- the component namedescriptor- the component field descriptorattributes- the component attributes- Returns:
- a record component description
-