Module io.github.dmlloyd.classfile
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.
- 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.github.dmlloyd.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.- Returns:
- the field descriptor string of this component
- See Also:
-
descriptorSymbol
Returns the symbolic field descriptor of 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
-
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
-