Class RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.bytecode.RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation
-
- Enclosing class:
- RuntimeVisibleorInvisibleParameterAnnotationsAttribute
public static class RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation extends java.lang.Object
ParameterAnnotation represents the annotations on a single parameter.
-
-
Constructor Summary
Constructors Constructor Description ParameterAnnotation(AnnotationsAttribute.Annotation[] annotations)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>getClassFileEntries()Gets all annotation class file entries.intgetLength()Gets the cumulative length of all annotations.voidresolve(ClassConstantPool pool)Resolves all annotations in this instance against the given pool.voidwriteBody(java.io.DataOutputStream dos)Writes this body to the given output stream.
-
-
-
Constructor Detail
-
ParameterAnnotation
public ParameterAnnotation(AnnotationsAttribute.Annotation[] annotations)
Constructs a new instance.- Parameters:
annotations- Annotation.
-
-
Method Detail
-
getClassFileEntries
public java.util.List<java.lang.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(java.io.DataOutputStream dos) throws java.io.IOException
Writes this body to the given output stream.- Parameters:
dos- the output stream.- Throws:
java.io.IOException- if an I/O error occurs.
-
-