org.apache.bcel.classfile

## 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 and Description
    `ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `dump(DataOutputStream dos)`
    `int` | `getNameIndex()`
    `String` | `getNameString()`
    `ElementValue` | `getValue()`
    `String` | `toShortString()`

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

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

- - ### Constructor Detail

    - #### ElementValuePair

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

  - ### Method Detail

    - #### getNameString

          public String getNameString()

    - #### getValue

          public final ElementValue getValue()

    - #### getNameIndex

          public int getNameIndex()

    - #### toShortString

          public String toShortString()

    - #### dump

          protected void dump(DataOutputStream dos)
                       throws IOException

      Throws:
        `IOException`

Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.