Package org.openjdk.asmtools.jdis

## Class AnnotationElement

- java.lang.Object
- - org.openjdk.asmtools.jdis.AnnotationElement

-     public class AnnotationElement
      extends java.lang.Object

  Base class of all AnnotationElement entries

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `AnnotationElement.Annot_AnnotValue` | Annot_AnnotValue Annotation value that is a reference to an annotation.
    `static class` | `AnnotationElement.AnnotValue` | CPX_AnnotElem base class for an annotation value.
    `static class` | `AnnotationElement.Array_AnnotValue` | Array_AnnotElem Annotation value that is an array of annotation elements.
    `static class` | `AnnotationElement.CPX_AnnotValue` | CPX_AnnotElem Annotation value which is described by a single CPX entry (ie.
    `static class` | `AnnotationElement.CPX2_AnnotValue` | CPX_AnnotElem AnnotElements that contain 2 cpx indices (ie. enums).

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected ClassData` | `cls` |
    `int` | `name_cpx` | constant pool index for the name of the Annotation Element
    `AnnotationElement.AnnotValue` | `value` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AnnotationElement​(ClassData cls)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `print​(java.io.PrintWriter out, java.lang.String tab)` |
    `void` | `read​(java.io.DataInputStream in, boolean invisible)` | read read and resolve the method data called from ClassData. precondition: NumFields has already been read from the stream.
    `static AnnotationElement.AnnotValue` | `readValue​(java.io.DataInputStream in, ClassData cls, boolean invisible)` | read Static factory - creates Annotation Elements.
    `java.lang.String` | `stringVal()` |
    `java.lang.String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### name_cpx

          public int name_cpx

      constant pool index for the name of the Annotation Element

    - #### value

          public AnnotationElement.AnnotValue value

    - #### cls

          protected ClassData cls

  - ### Constructor Detail

    - #### AnnotationElement

          public AnnotationElement​(ClassData cls)

  - ### Method Detail

    - #### readValue

          public static AnnotationElement.AnnotValue readValue​(java.io.DataInputStream in,
                                                               ClassData cls,
                                                               boolean invisible)
                                                        throws java.io.IOException

      read Static factory - creates Annotation Elements.
      Throws:
        `java.io.IOException`

    - #### read

          public void read​(java.io.DataInputStream in,
                           boolean invisible)
                    throws java.io.IOException

      read read and resolve the method data called from ClassData. precondition: NumFields has already been read from the stream.
      Throws:
        `java.io.IOException`

    - #### stringVal

          public java.lang.String stringVal()

    - #### print

          public void print​(java.io.PrintWriter out,
                            java.lang.String tab)

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`