# Class ElementValuePair

java.lang.Object
org.apache.bcel.classfile.ElementValuePair

public class ElementValuePair extends Object
An annotation's element value pair.

Since:
  6.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `dump(DataOutputStream dos)`
  `int`
  `getNameIndex()`
  `String`
  `getNameString()`
  `final ElementValue`
  `getValue()`
  `String`
  `toShortString()`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### ElementValuePair

    public ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)

- ## Method Details

  - ### dump

    protected void dump(DataOutputStream dos) throws IOException
    Throws:
      `IOException`

  - ### getNameIndex

    public int getNameIndex()

  - ### getNameString

    public String getNameString()

  - ### getValue

    public final ElementValue getValue()

  - ### toShortString

    public String toShortString()