Interface SourceIDAttribute
- All Superinterfaces:
- Attribute<SourceIDAttribute>,- ClassElement,- ClassFileElement
Models the 
SourceID attribute, which records
 the last modified time of the source file from which this class file
 was compiled.
 This attribute only appears on classes, and does not permit multiple instances in a class. It has a data dependency on the constant pool.
 This attribute is not predefined in the Java SE Platform.  This is a
 JDK-specific nonstandard attribute produced by the reference implementation
 of the system Java compiler, defined by the jdk.compiler module.
- Since:
- 24
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic SourceIDAttributeReturns aSourceIDattribute.static SourceIDAttributeReturns aSourceIDattribute.sourceId()Returns the source id.Methods declared in interface java.lang.classfile.AttributeattributeMapper, attributeName
- 
Method Details- 
sourceIdUtf8Entry sourceId()Returns the source id. The source id is the last modified time of the source file (as reported by the file system, in milliseconds) when thisclassfile is compiled.- Returns:
- the source id
 
- 
ofReturns aSourceIDattribute.- Parameters:
- sourceId- the source id
- Returns:
- a SourceIDattribute
 
- 
ofReturns aSourceIDattribute.- Parameters:
- sourceId- the source id
- Returns:
- a SourceIDattribute
 
 
-