Interface SourceIDAttribute
- All Superinterfaces:
Attribute<SourceIDAttribute>,ClassElement,ClassFileElement
Models the
SourceID attribute, which can
appear on classes. Delivered as a ClassElement when
traversing a ClassModel.
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:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionstatic SourceIDAttributeReturns aSourceIDattribute.static SourceIDAttributeReturns aSourceIDattribute.sourceId()Returns the source id.Methods declared in interface java.lang.classfile.Attribute
attributeMapper, attributeName
-
Method Details
-
sourceId
Utf8Entry sourceId()Returns the source id. The source id is the last modified time of the source file (as reported by the filesystem, in milliseconds) when the classfile is compiled.- Returns:
- the source id
-
of
Returns aSourceIDattribute.- Parameters:
sourceId- the source id- Returns:
- a
SourceIDattribute
-
of
Returns aSourceIDattribute.- Parameters:
sourceId- the source id- Returns:
- a
SourceIDattribute
-