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.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterAnnotation
(AnnotationsAttribute.Annotation[] annotations) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets all annotation class file entries.int
Gets the cumulative length of all annotations.void
resolve
(ClassConstantPool pool) Resolves all annotations in this instance against the given pool.void
Writes this body to the given output stream.
-
Constructor Details
-
ParameterAnnotation
Constructs a new instance.- Parameters:
annotations
- Annotation.
-
-
Method Details
-
getClassFileEntries
Gets all annotation class file entries.- Returns:
- all annotation class file entries.
-
getLength
Gets the cumulative length of all annotations.- Returns:
- the cumulative length of all annotations.
-
resolve
Resolves all annotations in this instance against the given pool.- Parameters:
pool
- A class constant pool.
-
writeBody
Writes this body to the given output stream.- Parameters:
dos
- the output stream.- Throws:
IOException
- if an I/O error occurs.
-