Top Description Fields Constructors Methods
org.apache.bcel.classfile

public abstract Class ParameterAnnotations

extends Attribute
implements Iterable<ParameterAnnotationEntry>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Known Direct Subclasses
org.apache.bcel.classfile.RuntimeInvisibleParameterAnnotations, org.apache.bcel.classfile.RuntimeVisibleParameterAnnotations
Imports
java.io.DataInput, .DataOutputStream, .IOException, java.util.Iterator, java.util.stream.Stream

base class for parameter annotations
Since
6.0

Field Summary

Modifier and TypeField and Description
private ParameterAnnotationEntry[]
parameterAnnotationTable

Table of parameter annotations

Inherited from org.apache.bcel.classfile.Attribute:
constant_poolEMPTY_ARRAYlengthname_indextag

Constructor Summary

AccessConstructor and Description
pack-priv
ParameterAnnotations(final byte
the subclass type of the parameter annotation
parameterAnnotationType
,
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
)

public
ParameterAnnotations(final byte
the subclass type of the parameter annotation
parameterAnnotationType
,
final int
Index pointing to the name Code
nameIndex
,
final int
Content length in bytes
length
,
final ParameterAnnotationEntry[]
the actual parameter annotations
parameterAnnotationTable
,
final ConstantPool
Array of constants
constantPool
)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract org.apache.bcel.classfile.Attribute.accept.

Implements org.apache.bcel.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
public Attribute

Returns:

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

Implements abstract org.apache.bcel.classfile.Attribute.copy.

public void
dump(final DataOutputStream
Output file stream
dos
)

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

Dumps attribute to file stream in binary format.
public ParameterAnnotationEntry[]
getParameterAnnotationEntries()

returns the array of parameter annotation entries in this parameter annotation

public final ParameterAnnotationEntry[]

Returns:

the parameter annotation entry table
getParameterAnnotationTable
()

public Iterator<ParameterAnnotationEntry>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
public final void
setParameterAnnotationTable(final ParameterAnnotationEntry[]
the entries to set in this parameter annotation
parameterAnnotationTable
)

Inherited from org.apache.bcel.classfile.Attribute:
addAttributeReaderaddAttributeReaderclonegetConstantPoolgetLengthgetNamegetNameIndexgetTagprintlnreadAttributereadAttributeremoveAttributeReadersetConstantPoolsetLengthsetNameIndextoString

Field Detail

parameterAnnotationTableback to summary
private ParameterAnnotationEntry[] parameterAnnotationTable

Table of parameter annotations

Constructor Detail

ParameterAnnotationsback to summary
pack-priv ParameterAnnotations(final byte parameterAnnotationType, final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException
Parameters
parameterAnnotationType:byte

the subclass type of the parameter annotation

nameIndex:int

Index pointing to the name Code

length:int

Content length in bytes

input:DataInput

Input stream

constantPool:ConstantPool

Array of constants

ParameterAnnotationsback to summary
public ParameterAnnotations(final byte parameterAnnotationType, final int nameIndex, final int length, final ParameterAnnotationEntry[] parameterAnnotationTable, final ConstantPool constantPool)
Parameters
parameterAnnotationType:byte

the subclass type of the parameter annotation

nameIndex:int

Index pointing to the name Code

length:int

Content length in bytes

parameterAnnotationTable:ParameterAnnotationEntry[]

the actual parameter annotations

constantPool:ConstantPool

Array of constants

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract org.apache.bcel.classfile.Attribute.accept.

Implements org.apache.bcel.classfile.Node.accept.

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.

Parameters
v:Visitor

Visitor object

Annotations
@Override
copyback to summary
public Attribute copy(final ConstantPool constantPool)

Implements abstract org.apache.bcel.classfile.Attribute.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 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.
getParameterAnnotationEntriesback to summary
public ParameterAnnotationEntry[] getParameterAnnotationEntries()

returns the array of parameter annotation entries in this parameter annotation

getParameterAnnotationTableback to summary
public final ParameterAnnotationEntry[] getParameterAnnotationTable()
Returns:ParameterAnnotationEntry[]

the parameter annotation entry table

iteratorback to summary
public Iterator<ParameterAnnotationEntry> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<ParameterAnnotationEntry>

an Iterator.

Annotations
@Override
setParameterAnnotationTableback to summary
public final void setParameterAnnotationTable(final ParameterAnnotationEntry[] parameterAnnotationTable)
Parameters
parameterAnnotationTable:ParameterAnnotationEntry[]

the entries to set in this parameter annotation