Class ArrayElementValue


  • public class ArrayElementValue
    extends ElementValue
    Represents an array element value in an annotation.
    Since:
    6.0
    • Field Detail

    • Constructor Detail

      • ArrayElementValue

        public ArrayElementValue​(int type,
                                 ElementValue[] elementValues,
                                 ConstantPool cpool)
        Constructs an ArrayElementValue.
        Parameters:
        type - the type.
        elementValues - the element values.
        cpool - the constant pool.
    • Method Detail

      • dump

        public void dump​(java.io.DataOutputStream dos)
                  throws java.io.IOException
        Description copied from class: ElementValue
        Dumps this element value to a DataOutputStream.
        Specified by:
        dump in class ElementValue
        Parameters:
        dos - the output stream.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • getElementValuesArray

        public ElementValue[] getElementValuesArray()
        Gets the element values array.
        Returns:
        the element values array.
      • getElementValuesArraySize

        public int getElementValuesArraySize()
        Gets the element values array size.
        Returns:
        the element values array size.
      • stringifyValue

        public java.lang.String stringifyValue()
        Description copied from class: ElementValue
        Returns a string representation of the element value.
        Specified by:
        stringifyValue in class ElementValue
        Returns:
        a string representation of the element value.
      • toString

        public java.lang.String toString()
        Description copied from class: ElementValue
        Returns a string representation of the element value.
        Overrides:
        toString in class ElementValue
        Returns:
        a string representation of the element value.