Class RuntimeInvisibleTypeAnnotations

All Implemented Interfaces:
Cloneable, Iterable<TypeAnnotationEntry>, Node

The type annotations of a class, field, method, record component or Code attribute, recorded in the class file but not visible at runtime.
Since:
6.14.0
  • Constructor Details

    • RuntimeInvisibleTypeAnnotations

      public RuntimeInvisibleTypeAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) throws IOException
      Constructs a new instance.
      Parameters:
      nameIndex - Index pointing to the name of the attribute.
      length - Content length in bytes.
      input - Input stream.
      constantPool - Array of constants.
      Throws:
      IOException - Thrown when an I/O exception of some sort has occurred.
  • Method Details

    • copy

      public Attribute copy(ConstantPool constantPool)
      Creates a deep copy of this attribute, whose type annotations are independent of this one's and refer to the given constant pool.
      Specified by:
      copy in class Attribute
      Parameters:
      constantPool - The constant pool of the copy.
      Returns:
      deep copy of this attribute.
    • dump

      public final void dump(DataOutputStream dos) throws IOException
      Description copied from class: Attribute
      Dumps attribute to file stream in binary format.
      Overrides:
      dump in class Attribute
      Parameters:
      dos - Output file stream.
      Throws:
      IOException - Thrown if an I/O error occurs.