Package org.apache.commons.compress.harmony.unpack200.bytecode

# Class AnnotationsAttribute.ElementValue

java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

Enclosing class:
  `AnnotationsAttribute`

public static class AnnotationsAttribute.ElementValue extends Object
Pairs a tag and value.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ElementValue(int tag, Object value)`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<Object>`
  `getClassFileEntries()`
  Gets a list of class file entries.
  `int`
  `getLength()`
  Gets the length.
  `void`
  `resolve(ClassConstantPool pool)`
  Resolves this instance against a given pool.
  `void`
  `writeBody(DataOutputStream dos)`
  Writes this instance to the given output stream.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ElementValue

    public ElementValue(int tag, Object value)
    Constructs a new instance.
    Parameters:
      `tag` - a tag.
      `value` - a value.

- ## Method Details

  - ### getClassFileEntries

    public List<Object> 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

    public void resolve(ClassConstantPool pool)
    Resolves this instance against a given pool.
    Parameters:
      `pool` - a class constant pool.

  - ### writeBody

    public void writeBody(DataOutputStream dos) throws IOException
    Writes this instance to the given output stream.
    Parameters:
      `dos` - the output stream.
    Throws:
      `IOException` - if an I/O error occurs.