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
-
public class AnnotationDefaultAttribute extends AnnotationsAttribute
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
Constructors Constructor Description AnnotationDefaultAttribute(AnnotationsAttribute.ElementValue elementValue)Constructs a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected intgetLength()Gets the length.protected ClassFileEntry[]getNestedClassFileEntries()Returns an empty array.protected voidresolve(ClassConstantPool pool)Allows the constant pool entries to resolve their nested entries.static voidsetAttributeName(CPUTF8 cpUTF8Value)Sets the attribute name.java.lang.StringtoString()protected voidwriteBody(java.io.DataOutputStream dos)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 Detail
-
AnnotationDefaultAttribute
public AnnotationDefaultAttribute(AnnotationsAttribute.ElementValue elementValue)
Constructs a new instance.- Parameters:
elementValue- element value to track.
-
-
Method Detail
-
setAttributeName
public static void setAttributeName(CPUTF8 cpUTF8Value)
Sets the attribute name.- Parameters:
cpUTF8Value- the attribute name.
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
Description copied from class:ClassFileEntryReturns an empty array.- Overrides:
getNestedClassFileEntriesin classAttribute- Returns:
- an empty array.
-
resolve
protected void resolve(ClassConstantPool pool)
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries.
-
toString
public java.lang.String toString()
- Specified by:
toStringin classClassFileEntry
-
-