Top Description Inners Fields Constructors Methods
org.apache.commons.compress.harmony.unpack200.bytecode

public abstract Class AnnotationsAttribute

extends Attribute
Class Inheritance
Known Direct Subclasses
org.apache.commons.compress.harmony.unpack200.bytecode.RuntimeVisibleorInvisibleAnnotationsAttribute, org.apache.commons.compress.harmony.unpack200.bytecode.RuntimeVisibleorInvisibleParameterAnnotationsAttribute, org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationDefaultAttribute
Imports
java.io.DataOutputStream, .IOException, java.util.ArrayList, .List

Abstract superclass for Annotations attributes

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AnnotationsAttribute.Annotation

Class to represent the annotation structure for class file attributes

public static class

Field Summary

Inherited from org.apache.commons.compress.harmony.unpack200.bytecode.Attribute:
attributeName

Constructor Summary

AccessConstructor and Description
public
AnnotationsAttribute(final CPUTF8 attributeName)

Method Summary

Inherited from org.apache.commons.compress.harmony.unpack200.bytecode.Attribute:
doWriteequalsgetAttributeNamegetLengthgetLengthIncludingHeadergetNestedClassFileEntrieshasBCIRenumberinghashCodeisSourceFileAttributeresolvewriteBody

Constructor Detail

AnnotationsAttributeback to summary
public AnnotationsAttribute(final CPUTF8 attributeName)
org.apache.commons.compress.harmony.unpack200.bytecode back to summary

public Class AnnotationsAttribute.Annotation

extends Object
Class Inheritance
  • java.lang.Object
  • org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationsAttribute.Annotation

Class to represent the annotation structure for class file attributes

Field Summary

Modifier and TypeField and Description
private final CPUTF8[]
private final AnnotationsAttribute.ElementValue[]
private int[]
private final int
private final CPUTF8
private int

Constructor Summary

AccessConstructor and Description
public
Annotation(final int numPairs, final CPUTF8 type, final CPUTF8[] elementNames, final AnnotationsAttribute.ElementValue[] elementValues)

Method Summary

Modifier and TypeMethod and Description
public List<Object>
public int
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementNamesback to summary
private final CPUTF8[] elementNames
elementValuesback to summary
private final AnnotationsAttribute.ElementValue[] elementValues
nameIndexesback to summary
private int[] nameIndexes
numPairsback to summary
private final int numPairs
typeback to summary
private final CPUTF8 type
typeIndexback to summary
private int typeIndex

Constructor Detail

Annotationback to summary
public Annotation(final int numPairs, final CPUTF8 type, final CPUTF8[] elementNames, final AnnotationsAttribute.ElementValue[] elementValues)

Method Detail

getClassFileEntriesback to summary
public List<Object> getClassFileEntries()
getLengthback to summary
public int getLength()
resolveback to summary
public void resolve(final ClassConstantPool pool)
writeBodyback to summary
public void writeBody(final DataOutputStream dos) throws IOException
org.apache.commons.compress.harmony.unpack200.bytecode back to summary

public Class AnnotationsAttribute.ElementValue

extends Object
Class Inheritance
  • java.lang.Object
  • org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

Field Summary

Modifier and TypeField and Description
private int
private final int
private final Object

Constructor Summary

AccessConstructor and Description
public
ElementValue(final int tag, final Object value)

Method Summary

Modifier and TypeMethod and Description
public List<Object>
public int
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constantValueIndexback to summary
private int constantValueIndex
tagback to summary
private final int tag
valueback to summary
private final Object value

Constructor Detail

ElementValueback to summary
public ElementValue(final int tag, final Object value)

Method Detail

getClassFileEntriesback to summary
public List<Object> getClassFileEntries()
getLengthback to summary
public int getLength()
resolveback to summary
public void resolve(final ClassConstantPool pool)
writeBodyback to summary
public void writeBody(final DataOutputStream dos) throws IOException