Class ParameterAnnotationEntry

java.lang.Object
org.apache.bcel.classfile.ParameterAnnotationEntry
All Implemented Interfaces:
Node

public class ParameterAnnotationEntry extends Object implements Node
represents one parameter annotation in the parameter annotation table
Since:
6.0
  • Field Details

  • Constructor Details

    • ParameterAnnotationEntry

      ParameterAnnotationEntry(DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) throws IOException
      Constructs object from input stream.
      Parameters:
      input - Input stream.
      constantPool - The constant pool.
      isRuntimeVisible - whether the contained annotations are runtime visible.
      Throws:
      IOException - Thrown if an I/O error occurs.
  • Method Details

    • createParameterAnnotationEntries

      public static ParameterAnnotationEntry[] createParameterAnnotationEntries(Attribute[] attributes)
      Creates parameter annotation entries from attributes.
      Parameters:
      attributes - The attributes.
      Returns:
      The parameter annotation entries.
    • 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(DataOutputStream dos) throws IOException
      Dumps parameter annotation entry to file stream.
      Parameters:
      dos - Output file stream.
      Throws:
      IOException - Thrown if an I/O error occurs.
    • getAnnotationEntries

      public AnnotationEntry[] getAnnotationEntries()
      Gets the annotation entries.
      Returns:
      The array of annotation entries in this annotation.