AttributedElement, ClassFileElementpublic sealed interface RecordComponentInfo extends AttributedElement
RecordAttribute. SignatureAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, and RuntimeInvisibleTypeAnnotationsAttribute are the only predefined attributes that may exist on record components.
Record Attribute| Modifier and Type | Method | Description |
|---|---|---|
Utf8Entry |
descriptor() |
Returns the field descriptor string of this component. |
default ClassDesc |
descriptorSymbol() |
Returns the symbolic field descriptor of this component. |
Utf8Entry |
name() |
Returns the name of this component. |
static RecordComponentInfo |
of |
Returns a record component description. |
static RecordComponentInfo |
of |
Returns a record component description. |
static RecordComponentInfo |
of |
Returns a record component description. |
static RecordComponentInfo |
of |
Returns a record component description. |
attributes, findAttribute, findAttributes
Utf8Entry name()
Utf8Entry descriptor()
Signature attribute in this component.default ClassDesc descriptorSymbol()
Signature attribute in this component.static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, List<Attribute<?>> attributes)
name - the component namedescriptor - the component field descriptor stringattributes - the component attributesstatic RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, Attribute<?>... attributes)
name - the component namedescriptor - the component field descriptor stingattributes - the component attributesstatic RecordComponentInfo of(String name, ClassDesc descriptor, List<Attribute<?>> attributes)
name - the component namedescriptor - the component symbolic field descriptorattributes - the component attributesstatic RecordComponentInfo of(String name, ClassDesc descriptor, Attribute<?>... attributes)
name - the component namedescriptor - the component symbolic field descriptorattributes - the component attributes
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/attribute/RecordComponentInfo.html