- 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.-
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
-