Class AnnotationEntry

  • All Implemented Interfaces:
    Node

    public class AnnotationEntry
    extends java.lang.Object
    implements Node
    Represents one annotation in the annotation table
    Since:
    6.0
    • Method Detail

      • read

        public static AnnotationEntry read​(java.io.DataInput input,
                                           ConstantPool constantPool,
                                           boolean isRuntimeVisible)
                                    throws java.io.IOException
        Factory method to create an AnnotionEntry from a DataInput
        Parameters:
        input -
        constantPool -
        isRuntimeVisible -
        Returns:
        the entry
        Throws:
        java.io.IOException - if an I/O error occurs.
      • accept

        public void accept​(Visitor v)
        Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
        Specified by:
        accept in interface Node
        Parameters:
        v - Visitor object
      • dump

        public void dump​(java.io.DataOutputStream dos)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getAnnotationType

        public java.lang.String getAnnotationType()
        Returns:
        the annotation type name
      • getNumElementValuePairs

        public final int getNumElementValuePairs()
        Returns:
        the number of element value pairs in this annotation entry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object