Interface CompilationIDAttribute

All Superinterfaces:
Attribute<CompilationIDAttribute>, ClassElement, ClassfileElement, WritableElement<CompilationIDAttribute>
All Known Implementing Classes:
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 Details

    • compilationId

      Utf8Entry compilationId()
      Returns the compilation ID. The compilation ID is the value of System.currentTimeMillis() when the classfile is generated.
      Returns:
      the compilation ID
    • of

      Returns a CompilationID attribute.
      Parameters:
      id - the compilation ID
      Returns:
      a CompilationID attribute
    • of

      Returns a CompilationID attribute.
      Parameters:
      id - the compilation ID
      Returns:
      a CompilationID attribute