Class ElementValuePair


  • public class ElementValuePair
    extends Object
    An annotation element-value pair: the element name and its value.
    • Constructor Detail

      • ElementValuePair

        public ElementValuePair​(int nameIndex,
                                String elementName,
                                ElementValue value)
        Creates an element-value pair.
        Parameters:
        nameIndex - constant-pool index of the element name Utf8
        elementName - the resolved element name
        value - the element value
    • Method Detail

      • getNameIndex

        public int getNameIndex()
        Returns:
        the name index
      • getElementName

        public String getElementName()
        Returns:
        the element name
      • getValue

        public ElementValue getValue()
        Returns:
        the value