Class AnnotationElementValue

java.lang.Object
org.apache.bcel.classfile.ElementValue
org.apache.bcel.classfile.AnnotationElementValue

public class AnnotationElementValue extends ElementValue
Represents an annotation element value.
Since:
6.0
  • Field Details

  • Constructor Details

    • 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 Details

    • dump

      public void dump(DataOutputStream dos) throws 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:
      IOException - Thrown if an I/O error occurs.
    • getAnnotationEntry

      public AnnotationEntry getAnnotationEntry()
      Gets the annotation entry.
      Returns:
      The annotation entry.
    • stringifyValue

      public 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 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.