public final class RuntimeInvisibleParameterAnnotationsAttribute extends AttributeInfo
RuntimeInvisibleParameterAnnotationsAttribute
denotes a RuntimeInvisibleParameterAnnotations_attribute structure somewhere in a ClassFile structure.
This class is not thread-safe.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
The name of the RuntimeInvisibleParameterAnnotations_attribute structure.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(NodeHierarchicalVisitor nodeHierarchicalVisitor)
Accepts a
NodeHierarchicalVisitor . |
void |
addParameterAnnotation(Annotations.ParameterAnnotation parameterAnnotation)
Adds
parameterAnnotation to the parameter_annotations of this RuntimeInvisibleParameterAnnotationsAttribute instance. |
RuntimeInvisibleParameterAnnotationsAttribute |
copy()
Returns a copy of this
RuntimeInvisibleParameterAnnotationsAttribute instance. |
boolean |
equals(java.lang.Object object)
Returns
true if, and only if, object is an instance of RuntimeInvisibleParameterAnnotationsAttribute , and that RuntimeInvisibleParameterAnnotationsAttribute instance is equal to this
RuntimeInvisibleParameterAnnotationsAttribute instance, false otherwise. |
static java.util.List<RuntimeInvisibleParameterAnnotationsAttribute> |
filter(Node node)
Returns a
List with all RuntimeInvisibleParameterAnnotationsAttribute s. |
int |
getAttributeLength()
Returns the attribute_length of this
RuntimeInvisibleParameterAnnotationsAttribute instance. |
int |
getNumParameters()
Returns the num_parameters of this
RuntimeInvisibleParameterAnnotationsAttribute instance. |
java.util.List<Annotations.ParameterAnnotation> |
getParameterAnnotations()
Returns the annotations of this
RuntimeInvisibleParameterAnnotationsAttribute instance. |
int |
hashCode()
Returns a hash code for this
RuntimeInvisibleParameterAnnotationsAttribute instance. |
static RuntimeInvisibleParameterAnnotationsAttribute |
newInstance(int attributeNameIndex)
Returns a new
RuntimeInvisibleParameterAnnotationsAttribute instance. |
void |
removeParameterAnnotation(Annotations.ParameterAnnotation parameterAnnotation)
Removes
parameterAnnotation from the parameter_annotations of this RuntimeInvisibleParameterAnnotationsAttribute instance. |
java.lang.String |
toString()
Returns a
String representation of this RuntimeInvisibleParameterAnnotationsAttribute instance. |
void |
write(java.io.DataOutput dataOutput)
Writes this
RuntimeInvisibleParameterAnnotationsAttribute to dataOutput . |
getAttributeNameIndex, getName, setAttributeNameIndex
public static final java.lang.String NAME
public java.util.List<Annotations.ParameterAnnotation> getParameterAnnotations()
RuntimeInvisibleParameterAnnotationsAttribute
instance.
Modifying the returned List
will not affect this RuntimeInvisibleParameterAnnotationsAttribute
instance.
RuntimeInvisibleParameterAnnotationsAttribute
instancepublic RuntimeInvisibleParameterAnnotationsAttribute copy()
RuntimeInvisibleParameterAnnotationsAttribute
instance.copy
in class AttributeInfo
RuntimeInvisibleParameterAnnotationsAttribute
instancepublic java.lang.String toString()
String
representation of this RuntimeInvisibleParameterAnnotationsAttribute
instance.toString
in class java.lang.Object
String
representation of this RuntimeInvisibleParameterAnnotationsAttribute
instancepublic boolean accept(NodeHierarchicalVisitor nodeHierarchicalVisitor)
NodeHierarchicalVisitor
.
Returns the result of nodeHierarchicalVisitor.visitLeave(this)
.
If nodeHierarchicalVisitor
is null
, a NullPointerException
will be thrown.
If a RuntimeException
is thrown by the current NodeHierarchicalVisitor
, a NodeTraversalException
will be thrown with the RuntimeException
wrapped.
This implementation will:
NullPointerException
if nodeHierarchicalVisitor
is null
.NodeTraversalException
if nodeHierarchicalVisitor
throws a RuntimeException
.Node
s, if it has any.nodeHierarchicalVisitor
- the NodeHierarchicalVisitor
to acceptnodeHierarchicalVisitor.visitLeave(this)
NodeTraversalException
- thrown if, and only if, a RuntimeException
is thrown by the current NodeHierarchicalVisitor
java.lang.NullPointerException
- thrown if, and only if, nodeHierarchicalVisitor
is null
public boolean equals(java.lang.Object object)
true
if, and only if, object
is an instance of RuntimeInvisibleParameterAnnotationsAttribute
, and that RuntimeInvisibleParameterAnnotationsAttribute
instance is equal to this
RuntimeInvisibleParameterAnnotationsAttribute
instance, false
otherwise.equals
in class java.lang.Object
object
- an Object
to compare to this RuntimeInvisibleParameterAnnotationsAttribute
instance for equalitytrue
if, and only if, object
is an instance of RuntimeInvisibleParameterAnnotationsAttribute
, and that RuntimeInvisibleParameterAnnotationsAttribute
instance is equal to this
RuntimeInvisibleParameterAnnotationsAttribute
instance, false
otherwisepublic int getAttributeLength()
RuntimeInvisibleParameterAnnotationsAttribute
instance.getAttributeLength
in class AttributeInfo
RuntimeInvisibleParameterAnnotationsAttribute
instancepublic int getNumParameters()
RuntimeInvisibleParameterAnnotationsAttribute
instance.RuntimeInvisibleParameterAnnotationsAttribute
instancepublic int hashCode()
RuntimeInvisibleParameterAnnotationsAttribute
instance.hashCode
in class java.lang.Object
RuntimeInvisibleParameterAnnotationsAttribute
instancepublic void addParameterAnnotation(Annotations.ParameterAnnotation parameterAnnotation)
parameterAnnotation
to the parameter_annotations of this RuntimeInvisibleParameterAnnotationsAttribute
instance.
If parameterAnnotation
is null
, a NullPointerException
will be thrown.
parameterAnnotation
- the Annotations.ParameterAnnotation
to addjava.lang.NullPointerException
- thrown if, and only if, parameterAnnotation
is null
public void removeParameterAnnotation(Annotations.ParameterAnnotation parameterAnnotation)
parameterAnnotation
from the parameter_annotations of this RuntimeInvisibleParameterAnnotationsAttribute
instance.
If parameterAnnotation
is null
, a NullPointerException
will be thrown.
parameterAnnotation
- the Annotations.ParameterAnnotation
to removejava.lang.NullPointerException
- thrown if, and only if, parameterAnnotation
is null
public void write(java.io.DataOutput dataOutput)
RuntimeInvisibleParameterAnnotationsAttribute
to dataOutput
.
If dataOutput
is an OutputStream
(or any other type of stream), this method will not close it.
If dataOutput
is null
, a NullPointerException
will be thrown.
If an I/O-error occurs, an UncheckedIOException
will be thrown.
write
in class AttributeInfo
dataOutput
- the DataOutput
to write tojava.lang.NullPointerException
- thrown if, and only if, dataOutput
is null
java.io.UncheckedIOException
- thrown if, and only if, an I/O-error occurspublic static java.util.List<RuntimeInvisibleParameterAnnotationsAttribute> filter(Node node)
List
with all RuntimeInvisibleParameterAnnotationsAttribute
s.
All RuntimeInvisibleParameterAnnotationsAttribute
s are found by traversing node
using a simple NodeHierarchicalVisitor
implementation.
If node
is null
, a NullPointerException
will be thrown.
node
- the Node
to start traversal fromList
with all RuntimeInvisibleParameterAnnotationsAttribute
sjava.lang.NullPointerException
- thrown if, and only if, node
is null
public static RuntimeInvisibleParameterAnnotationsAttribute newInstance(int attributeNameIndex)
RuntimeInvisibleParameterAnnotationsAttribute
instance.
If attributeNameIndex
is less than or equal to 0
, an IllegalArgumentException
will be thrown.
attributeNameIndex
- the attribute_name_index of the new RuntimeInvisibleParameterAnnotationsAttribute
instanceRuntimeInvisibleParameterAnnotationsAttribute
instancejava.lang.IllegalArgumentException
- thrown if, and only if, attributeNameIndex
is less than or equal to 0