public static final class Annotations.ParameterAnnotation extends java.lang.Object implements Node
Constructor and Description |
---|
ParameterAnnotation() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(NodeHierarchicalVisitor nodeHierarchicalVisitor)
Accepts a
NodeHierarchicalVisitor . |
void |
addAnnotation(Annotations.Annotation annotation) |
Annotations.ParameterAnnotation |
copy() |
boolean |
equals(java.lang.Object object) |
java.util.List<Annotations.Annotation> |
getAnnotations() |
int |
getLength() |
int |
getNumAnnotations() |
int |
hashCode() |
void |
removeAnnotation(Annotations.Annotation annotation) |
void |
write(java.io.DataOutput dataOutput) |
public java.util.List<Annotations.Annotation> getAnnotations()
public Annotations.ParameterAnnotation copy()
public boolean accept(NodeHierarchicalVisitor nodeHierarchicalVisitor)
Node
NodeHierarchicalVisitor
.
Returns the result of nodeHierarchicalVisitor.visitLeave(this)
.
If nodeHierarchicalVisitor
is null
, a NullPointerException
may be thrown. But no guarantees can be made for all implementations.
If a RuntimeException
is thrown by the current NodeHierarchicalVisitor
, a NodeTraversalException
may be thrown with the RuntimeException
wrapped. But no guarantees can be made for all implementations.
To implement this method, consider the following example:
if(nodeHierarchicalVisitor.visitEnter(this)) {
for(Node childNode : childNodes) {
if(!childNode.accept(nodeHierarchicalVisitor)) {
break;
}
}
}
return nodeHierarchicalVisitor.visitLeave(this);
The default implementation will:
NullPointerException
if nodeHierarchicalVisitor
is null
.NodeTraversalException
if nodeHierarchicalVisitor
throws a RuntimeException
.Node
s, because it does not have any.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int getLength()
public int getNumAnnotations()
public int hashCode()
hashCode
in class java.lang.Object
public void addAnnotation(Annotations.Annotation annotation)
public void removeAnnotation(Annotations.Annotation annotation)
public void write(java.io.DataOutput dataOutput)