Top Description Constructors Methods
org.apache.bcel.classfile

public Class RuntimeVisibleAnnotations

extends Annotations
Class Inheritance
Imports
java.io.DataInput, .DataOutputStream, .IOException, org.apache.bcel.Const

represents an annotation that is represented in the class file and is provided to the JVM.
Since
6.0

Constructor Summary

AccessConstructor and Description
public
RuntimeVisibleAnnotations(final int
Index pointing to the name Code
nameIndex
,
final int
Content length in bytes
length
,
final DataInput
Input stream
input
,
final ConstantPool
Array of constants
constantPool
)

Method Summary

Modifier and TypeMethod and Description
public Attribute

Returns:

deep copy of this attribute
copy
(final ConstantPool
constant pool to save.
constantPool
)

Overrides org.apache.bcel.classfile.Annotations.copy.

public final void
dump(final DataOutputStream
Output file stream
dos
)

Overrides org.apache.bcel.classfile.Attribute.dump.

Dumps attribute to file stream in binary format.
Inherited from org.apache.bcel.classfile.Annotations:
acceptgetAnnotationEntriesgetNumAnnotationsisRuntimeVisibleiteratorsetAnnotationTabletoStringwriteAnnotations

Constructor Detail

RuntimeVisibleAnnotationsback to summary
public RuntimeVisibleAnnotations(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException
Parameters
nameIndex:int

Index pointing to the name Code

length:int

Content length in bytes

input:DataInput

Input stream

constantPool:ConstantPool

Array of constants

Exceptions
IOException:
Thrown when an I/O exception of some sort has occurred.

Method Detail

copyback to summary
public Attribute copy(final ConstantPool constantPool)

Overrides org.apache.bcel.classfile.Annotations.copy.

Parameters
constantPool:ConstantPool

Doc from org.apache.bcel.classfile.Attribute.copy.

constant pool to save.

Returns:Attribute

deep copy of this attribute

Annotations
@Override
dumpback to summary
public final void dump(final DataOutputStream dos) throws IOException

Overrides org.apache.bcel.classfile.Attribute.dump.

Doc from org.apache.bcel.classfile.Attribute.dump.

Dumps attribute to file stream in binary format.

Parameters
dos:DataOutputStream

Output file stream

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.