Class ClassElementValue


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

      • idx

        private final int idx
    • Constructor Detail

      • ClassElementValue

        public ClassElementValue​(int type,
                                 int idx,
                                 ConstantPool cpool)
        Constructs a ClassElementValue.
        Parameters:
        type - the type.
        idx - the index.
        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.
      • getClassString

        public java.lang.String getClassString()
        Gets the class string.
        Returns:
        the class string.
      • getIndex

        public int getIndex()
        Gets the index.
        Returns:
        the index.
      • 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.