Class AnnotationDefaultAttribute
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.AnnotationDefaultAttribute
AnnotationDefault class file attribute
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationsAttribute
AnnotationsAttribute.Annotation, AnnotationsAttribute.ElementValue
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationDefaultAttribute
(AnnotationsAttribute.ElementValue elementValue) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected int
Gets the length.protected ClassFileEntry[]
Returns an empty array.protected void
resolve
(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.static void
setAttributeName
(CPUTF8 cpUTF8Value) Sets the attribute name.toString()
protected void
Writes this body to the given output stream.Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
doWrite, getAttributeName, getLengthIncludingHeader, hasBCIRenumbering, hashCode, isSourceFileAttribute
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Constructor Details
-
AnnotationDefaultAttribute
Constructs a new instance.- Parameters:
elementValue
- element value to track.
-
-
Method Details
-
setAttributeName
Sets the attribute name.- Parameters:
cpUTF8Value
- the attribute name.
-
equals
-
getLength
Description copied from class:Attribute
Gets the length. -
getNestedClassFileEntries
Description copied from class:ClassFileEntry
Returns an empty array.- Overrides:
getNestedClassFileEntries
in classAttribute
- Returns:
- an empty array.
-
resolve
Description copied from class:ClassFileEntry
Allows the constant pool entries to resolve their nested entries. -
toString
- Specified by:
toString
in classClassFileEntry
-
writeBody
Description copied from class:Attribute
Writes this body to the given output stream.- Specified by:
writeBody
in classAttribute
- Parameters:
dos
- the output stream.- Throws:
IOException
- if an I/O error occurs.
-