Class RuntimeVisibleorInvisibleParameterAnnotationsAttribute
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationsAttribute
org.apache.commons.compress.harmony.unpack200.bytecode.RuntimeVisibleorInvisibleParameterAnnotationsAttribute
Parameter annotations class file attribute, either a RuntimeVisibleParameterAnnotations attribute or a RuntimeInvisibleParameterAnnotations attribute.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParameterAnnotation represents the annotations on a single parameter.Nested classes/interfaces inherited from class AnnotationsAttribute
AnnotationsAttribute.Annotation, AnnotationsAttribute.ElementValue -
Field Summary
Fields inherited from class Attribute
attributeNameFields inherited from class ClassFileEntry
NONE -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeVisibleorInvisibleParameterAnnotationsAttribute(CPUTF8 name, RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation[] parameterAnnotations) Constructs a new instance for an attribute name. -
Method Summary
Modifier and TypeMethodDescriptionprotected intGets the length.protected ClassFileEntry[]Returns an empty array.protected voidresolve(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.toString()protected voidWrites this body to the given output stream.Methods inherited from class Attribute
doWrite, equals, getAttributeName, getLengthIncludingHeader, hasBCIRenumbering, hashCode, isSourceFileAttributeMethods inherited from class ClassFileEntry
objectHashCode, write
-
Constructor Details
-
RuntimeVisibleorInvisibleParameterAnnotationsAttribute
public RuntimeVisibleorInvisibleParameterAnnotationsAttribute(CPUTF8 name, RuntimeVisibleorInvisibleParameterAnnotationsAttribute.ParameterAnnotation[] parameterAnnotations) Constructs a new instance for an attribute name.- Parameters:
name- an attribute name.parameterAnnotations- Annotations.
-
-
Method Details
-
getLength
-
getNestedClassFileEntries
Description copied from class:ClassFileEntryReturns an empty array.- Overrides:
getNestedClassFileEntriesin classAttribute- Returns:
- an empty array.
-
resolve
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries. -
toString
- Specified by:
toStringin classClassFileEntry
-
writeBody
Description copied from class:AttributeWrites this body to the given output stream.- Specified by:
writeBodyin classAttribute- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-