APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.classfile

public abstract Class ParameterAnnotations

extends Attribute
implements Iterable<ParameterAnnotationEntry>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Known Direct Subclasses
com.sun.org.apache.bcel.internal.classfile.RuntimeInvisibleParameterAnnotations, com.sun.org.apache.bcel.internal.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 static final ParameterAnnotationEntry[]
private ParameterAnnotationEntry[]
parameterAnnotationTable

Table of parameter annotations

Inherited from com.sun.org.apache.bcel.internal.classfile.Attribute:
constant_poollengthname_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
)

Constructs a new instance.

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
)

Constructs a new instance.

Method Summary

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

Implements abstract com.sun.org.apache.bcel.internal.classfile.Attribute.accept.

Implements com.sun.org.apache.bcel.internal.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
copy(final ConstantPool constantPool)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Attribute.copy.

Returns: deep copy of this attribute

public void
dump(final DataOutputStream dos)

Overrides com.sun.org.apache.bcel.internal.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[]
getParameterAnnotationTable()

Returns: the parameter annotation entry table

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 com.sun.org.apache.bcel.internal.classfile.Attribute:
addAttributeReaderclonegetConstantPoolgetLengthgetNamegetNameIndexgetTagprintlnreadAttributereadAttributeremoveAttributeReadersetConstantPoolsetLengthsetNameIndextoString

Field Detail

EMPTY_ARRAYback to summary
private static final ParameterAnnotationEntry[] EMPTY_ARRAY

Hides com.sun.org.apache.bcel.internal.classfile.Attribute.EMPTY_ARRAY.

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

Constructs a new instance.

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)

Constructs a new instance.

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 com.sun.org.apache.bcel.internal.classfile.Attribute.accept.

Implements com.sun.org.apache.bcel.internal.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 com.sun.org.apache.bcel.internal.classfile.Attribute.copy.

Returns:Attribute

deep copy of this attribute

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

Overrides com.sun.org.apache.bcel.internal.classfile.Attribute.dump.

Doc from com.sun.org.apache.bcel.internal.classfile.Attribute.dump.

Dumps attribute to file stream in binary format.

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.

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

the entries to set in this parameter annotation