- All Superinterfaces:
Attribute<SourceIDAttribute>,ClassElement,ClassfileElement,WritableElement<SourceIDAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundSourceIDAttribute,UnboundAttribute.UnboundSourceIDAttribute
public sealed interface SourceIDAttribute
extends Attribute<SourceIDAttribute>, ClassElement
permits BoundAttribute.BoundSourceIDAttribute, UnboundAttribute.UnboundSourceIDAttribute
Models the
SourceFile attribute (@@@ reference needed), which can
appear on classes. Delivered as a ClassElement when
traversing a ClassModel.-
Method Summary
Modifier and TypeMethodDescriptionstatic SourceIDAttributeReturns aSourceIDattribute.static SourceIDAttributeReturns aSourceIDattribute.sourceId()Returns the source id.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
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
-