Class AnnotationsAttribute.ElementValue
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue
- Enclosing class:
- AnnotationsAttribute
Pairs a tag and value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a list of class file entries.intGets the length.voidresolve(ClassConstantPool pool) Resolves this instance against a given pool.voidWrites this instance to the given output stream.
-
Field Details
-
value
-
tag
private final int tag -
constantValueIndex
private int constantValueIndex
-
-
Constructor Details
-
ElementValue
Constructs a new instance.- Parameters:
tag- a tag.value- a value.
-
-
Method Details
-
getClassFileEntries
Gets a list of class file entries.- Returns:
- a list of class file entries.
-
getLength
public int getLength()Gets the length.- Returns:
- the length.
-
resolve
Resolves this instance against a given pool.- Parameters:
pool- a class constant pool.
-
writeBody
Writes this instance to the given output stream.- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-