Package org.apache.bcel.classfile
Class RuntimeInvisibleAnnotations
java.lang.Object
org.apache.bcel.classfile.Attribute
org.apache.bcel.classfile.Annotations
org.apache.bcel.classfile.RuntimeInvisibleAnnotations
- All Implemented Interfaces:
Cloneable
,Iterable<AnnotationEntry>
,Node
An annotation that is represented in the class file but is not 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
ConstructorDescriptionRuntimeInvisibleAnnotations
(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncopy
(ConstantPool constantPool) Creates a deep copy of this attribute.final void
dump
(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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RuntimeInvisibleAnnotations
public RuntimeInvisibleAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) throws IOException Constructs a new instance.- Parameters:
nameIndex
- Index pointing to the name Codelength
- Content length in bytesinput
- Input streamconstantPool
- Array of constants- Throws:
IOException
- Thrown when an I/O exception of some sort has occurred.
-
-
Method Details
-
copy
Creates a deep copy of this attribute.- Overrides:
copy
in classAnnotations
- Parameters:
constantPool
- constant pool to save.- Returns:
- deep copy of this attribute.
-
dump
Description copied from class:Attribute
Dumps attribute to file stream in binary format.- Overrides:
dump
in classAttribute
- Parameters:
dos
- Output file stream- Throws:
IOException
- if an I/O error occurs.
-