Package org.apache.bcel.classfile
Class RuntimeVisibleAnnotations
- java.lang.Object
-
- org.apache.bcel.classfile.Attribute
-
- org.apache.bcel.classfile.Annotations
-
- org.apache.bcel.classfile.RuntimeVisibleAnnotations
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<AnnotationEntry>
,Node
public class RuntimeVisibleAnnotations extends Annotations
An annotation that is represented in the class file and is provided to the JVM.- Since:
- 6.0
-
-
Field Summary
-
Fields inherited from class org.apache.bcel.classfile.Attribute
constant_pool, EMPTY_ARRAY, length, name_index, tag
-
-
Constructor Summary
Constructors Constructor Description RuntimeVisibleAnnotations(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
copy(ConstantPool constantPool)
Creates a deep copy of this attribute.void
dump(java.io.DataOutputStream dos)
Dumps attribute to file stream in binary format.-
Methods inherited from class org.apache.bcel.classfile.Annotations
accept, getAnnotationEntries, getNumAnnotations, isRuntimeVisible, iterator, setAnnotationTable, toString, writeAnnotations
-
Methods inherited from class org.apache.bcel.classfile.Attribute
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
-
-
-
-
Constructor Detail
-
RuntimeVisibleAnnotations
public RuntimeVisibleAnnotations(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool) throws java.io.IOException
Constructs a new instance.- Parameters:
nameIndex
- Index pointing to the name Codelength
- Content length in bytesinput
- Input streamconstantPool
- Array of constants- Throws:
java.io.IOException
- Thrown when an I/O exception of some sort has occurred.
-
-
Method Detail
-
copy
public Attribute copy(ConstantPool constantPool)
Creates a deep copy of this attribute.- Overrides:
copy
in classAnnotations
- Parameters:
constantPool
- constant pool to save.- Returns:
- deep copy of this attribute.
-
-