- All Superinterfaces:
Attribute<CompilationIDAttribute>,ClassElement,ClassFileElement,WritableElement<CompilationIDAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundCompilationIDAttribute,UnboundAttribute.UnboundCompilationIDAttribute
public sealed interface CompilationIDAttribute
extends Attribute<CompilationIDAttribute>, ClassElement
permits BoundAttribute.BoundCompilationIDAttribute, UnboundAttribute.UnboundCompilationIDAttribute
Models the
CompilationID attribute (@@@ need reference), which can
appear on classes and records the compilation time of the class. Delivered
as a ClassElement when traversing the elements of
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:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the compilation ID.static CompilationIDAttributeReturns aCompilationIDattribute.static CompilationIDAttributeReturns aCompilationIDattribute.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
compilationId
Utf8Entry compilationId()Returns the compilation ID. The compilation ID is the value ofSystem.currentTimeMillis()when the classfile is generated.- Returns:
- the compilation ID
-
of
Returns aCompilationIDattribute.- Parameters:
id- the compilation ID- Returns:
- a
CompilationIDattribute
-
of
Returns aCompilationIDattribute.- Parameters:
id- the compilation ID- Returns:
- a
CompilationIDattribute
-