Class RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation

java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation
Enclosing class:
RuntimeVisibleorInvisibleParameterAnnotationsAttribute

public static class RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation extends Object
ParameterAnnotation represents the annotations on a single parameter.
  • Field Details

  • Constructor Details

    • ParameterAnnotation

      public ParameterAnnotation(AnnotationsAttribute.Annotation[] annotations)
      Constructs a new instance.
      Parameters:
      annotations - Annotation.
  • Method Details

    • getClassFileEntries

      public List<Object> getClassFileEntries()
      Gets all annotation class file entries.
      Returns:
      all annotation class file entries.
    • getLength

      public int getLength()
      Gets the cumulative length of all annotations.
      Returns:
      the cumulative length of all annotations.
    • resolve

      public void resolve(ClassConstantPool pool)
      Resolves all annotations in this instance against the given pool.
      Parameters:
      pool - A class constant pool.
    • writeBody

      public void writeBody(DataOutputStream dos) throws IOException
      Writes this body to the given output stream.
      Parameters:
      dos - the output stream.
      Throws:
      IOException - if an I/O error occurs.