Class Annotations

java.lang.Object
org.apache.bcel.classfile.Attribute
org.apache.bcel.classfile.Annotations
All Implemented Interfaces:
Cloneable, Iterable<AnnotationEntry>, Node
Direct Known Subclasses:
RuntimeInvisibleAnnotations, RuntimeVisibleAnnotations

public abstract class Annotations extends Attribute implements Iterable<AnnotationEntry>
base class for annotations
Since:
6.0
  • Constructor Details

    • Annotations

      public Annotations(byte annotationType, int nameIndex, int length, AnnotationEntry[] annotationTable, ConstantPool constantPool, boolean isRuntimeVisible)
      Constructs an instance.
      Parameters:
      annotationType - the subclass type of the annotation
      nameIndex - Index pointing to the name Code
      length - Content length in bytes
      annotationTable - the actual annotations
      constantPool - Array of constants
      isRuntimeVisible - whether this Annotation visible at runtime
  • Method Details