public abstract class ParameterAnnotations extends Attribute implements Iterable<ParameterAnnotationEntry>
constant_pool, EMPTY_ARRAY, length, name_index, tag
Constructor and Description |
---|
ParameterAnnotations(byte parameterAnnotationType,
int nameIndex,
int length,
ParameterAnnotationEntry[] parameterAnnotationTable,
ConstantPool constantPool) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool constantPool) |
void |
dump(DataOutputStream dos)
Dumps attribute to file stream in binary format.
|
ParameterAnnotationEntry[] |
getParameterAnnotationEntries()
returns the array of parameter annotation entries in this parameter annotation
|
ParameterAnnotationEntry[] |
getParameterAnnotationTable() |
Iterator<ParameterAnnotationEntry> |
iterator() |
void |
setParameterAnnotationTable(ParameterAnnotationEntry[] parameterAnnotationTable) |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, ParameterAnnotationEntry[] parameterAnnotationTable, ConstantPool constantPool)
parameterAnnotationType
- the subclass type of the parameter annotationnameIndex
- Index pointing to the name Codelength
- Content length in bytesparameterAnnotationTable
- the actual parameter annotationsconstantPool
- Array of constantspublic void accept(Visitor v)
public Attribute copy(ConstantPool constantPool)
public void dump(DataOutputStream dos) throws IOException
Attribute
dump
in class Attribute
dos
- Output file streamIOException
- if an I/O error occurs.public ParameterAnnotationEntry[] getParameterAnnotationEntries()
public final ParameterAnnotationEntry[] getParameterAnnotationTable()
public Iterator<ParameterAnnotationEntry> iterator()
iterator
in interface Iterable<ParameterAnnotationEntry>
public final void setParameterAnnotationTable(ParameterAnnotationEntry[] parameterAnnotationTable)
parameterAnnotationTable
- the entries to set in this parameter annotationCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.