Class AnnotationElementValue


  • public class AnnotationElementValue
    extends ElementValue
    Represents an annotation element value.
    Since:
    6.0
    • Constructor Detail

      • AnnotationElementValue

        public AnnotationElementValue​(int type,
                                      AnnotationEntry annotationEntry,
                                      ConstantPool cpool)
        Constructs an AnnotationElementValue.
        Parameters:
        type - the type.
        annotationEntry - the annotation entry.
        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.
      • getAnnotationEntry

        public AnnotationEntry getAnnotationEntry()
        Gets the annotation entry.
        Returns:
        the annotation entry.
      • 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.