Interface RecordComponentInfo
- All Superinterfaces:
AttributedElementPREVIEW
,ClassFileElementPREVIEW
RecordComponentInfo
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a single record component in the
RecordAttribute
PREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field descriptor of this component.default ClassDesc
Returns the field descriptor of this component, as a ClassDesc.name()
Returns the name of this component.static RecordComponentInfoPREVIEW
Returns a record component description.static RecordComponentInfoPREVIEW
Returns a record component description.static RecordComponentInfoPREVIEW
Returns a record component description.static RecordComponentInfoPREVIEW
Returns a record component description.Methods declared in interface java.lang.classfile.AttributedElementPREVIEW
attributes, findAttribute, findAttributes
-
Method Details
-
name
-
descriptor
-
descriptorSymbol
-
of
static RecordComponentInfoPREVIEW of(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, List<AttributePREVIEW<?>> attributes) Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component field descriptorattributes
- the component attributes- Returns:
- a record component description
-
of
static RecordComponentInfoPREVIEW of(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, AttributePREVIEW<?>... attributes) Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component field descriptorattributes
- the component attributes- Returns:
- a record component description
-
of
static RecordComponentInfoPREVIEW of(String name, ClassDesc descriptor, List<AttributePREVIEW<?>> attributes) Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component field descriptorattributes
- the component attributes- Returns:
- a record component description
-
of
static RecordComponentInfoPREVIEW of(String name, ClassDesc descriptor, AttributePREVIEW<?>... attributes) Returns a record component description.- Parameters:
name
- the component namedescriptor
- the component field descriptorattributes
- the component attributes- Returns:
- a record component description
-
RecordComponentInfo
when preview features are enabled.