Interface SourceIDAttribute
- All Superinterfaces:
AttributePREVIEW<SourceIDAttributePREVIEW>
,ClassElementPREVIEW
,ClassFileElementPREVIEW
,WritableElementPREVIEW<SourceIDAttributePREVIEW>
public sealed interface SourceIDAttribute
extends AttributePREVIEW<SourceIDAttributePREVIEW>, ClassElementPREVIEW
SourceIDAttribute
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 the
SourceID
attribute, which can
appear on classes. Delivered as a ClassElement
PREVIEW when
traversing a ClassModel
PREVIEW.
The attribute does not permit multiple instances in a given location. Subsequent occurrence of the attribute takes precedence during the attributed element build or transformation.
- Since:
- 22
-
Method Summary
Methods declared in interface java.lang.classfile.AttributePREVIEW
attributeMapper, attributeName
Methods declared in interface java.lang.classfile.WritableElementPREVIEW
writeTo
-
Method Details
-
sourceId
-
of
Returns aSourceID
attribute.- Parameters:
sourceId
- the source id- Returns:
- a
SourceID
attribute
-
of
Returns aSourceID
attribute.- Parameters:
sourceId
- the source id- Returns:
- a
SourceID
attribute
-
SourceIDAttribute
when preview features are enabled.