Class AnnotationsAttribute.Annotation
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.AnnotationsAttribute.Annotation
-
- Enclosing class:
- AnnotationsAttribute
public static class AnnotationsAttribute.Annotation extends java.lang.ObjectClass to represent the annotation structure for class file attributes
-
-
Field Summary
Fields Modifier and Type Field Description private CPUTF8[]elementNamesprivate AnnotationsAttribute.ElementValue[]elementValuesprivate int[]nameIndexesprivate intnumPairsprivate CPUTF8typeprivate inttypeIndex
-
Constructor Summary
Constructors Constructor Description Annotation(int numPairs, CPUTF8 type, CPUTF8[] elementNames, AnnotationsAttribute.ElementValue[] elementValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>getClassFileEntries()intgetLength()voidresolve(ClassConstantPool pool)voidwriteBody(java.io.DataOutputStream dos)
-
-
-
Field Detail
-
numPairs
private final int numPairs
-
elementNames
private final CPUTF8[] elementNames
-
elementValues
private final AnnotationsAttribute.ElementValue[] elementValues
-
type
private final CPUTF8 type
-
typeIndex
private int typeIndex
-
nameIndexes
private int[] nameIndexes
-
-
Constructor Detail
-
Annotation
public Annotation(int numPairs, CPUTF8 type, CPUTF8[] elementNames, AnnotationsAttribute.ElementValue[] elementValues)
-
-
Method Detail
-
getClassFileEntries
public java.util.List<java.lang.Object> getClassFileEntries()
-
getLength
public int getLength()
-
resolve
public void resolve(ClassConstantPool pool)
-
writeBody
public void writeBody(java.io.DataOutputStream dos) throws java.io.IOException- Throws:
java.io.IOException
-
-