public class MethodParameterInfo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AnnotationInfoList |
getAnnotationInfo()
Method parameter annotation info (or null if no annotations).
|
AnnotationInfo |
getAnnotationInfo(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Get a the non-
Repeatable annotation on this method, or null if the method parameter does not have the
annotation. |
AnnotationInfo |
getAnnotationInfo(java.lang.String annotationName)
Get a the named non-
Repeatable annotation on this method, or null if the method parameter does not
have the named annotation. |
AnnotationInfoList |
getAnnotationInfoRepeatable(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Get a the
Repeatable annotation on this method, or the empty list if the method parameter does not
have the annotation. |
AnnotationInfoList |
getAnnotationInfoRepeatable(java.lang.String annotationName)
Get a the named
Repeatable annotation on this method, or the empty list if the method parameter does
not have the named annotation. |
MethodInfo |
getMethodInfo()
Get the
MethodInfo for the defining method. |
int |
getModifiers()
Method parameter modifiers.
|
java.lang.String |
getModifiersStr()
Get the method parameter modifiers as a String, e.g.
|
java.lang.String |
getName()
Method parameter name.
|
TypeSignature |
getTypeDescriptor()
Method parameter type descriptor.
|
TypeSignature |
getTypeSignature()
Method parameter type signature, possibly including generic type information (or null if no type signature
information available for this parameter).
|
TypeSignature |
getTypeSignatureOrTypeDescriptor()
Method parameter type signature, or if not available, method type descriptor.
|
boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Check whether this method parameter has the annotation.
|
boolean |
hasAnnotation(java.lang.String annotationName)
Check whether this method parameter has the named annotation.
|
int |
hashCode() |
boolean |
isFinal()
Returns true if this method parameter is final.
|
boolean |
isMandated()
Returns true if this method parameter is mandated.
|
boolean |
isSynthetic()
Returns true if this method parameter is synthetic.
|
protected void |
setScanResult(ScanResult scanResult)
Sets the scan result.
|
java.lang.String |
toString()
Render to string.
|
protected void |
toString(boolean useSimpleNames,
java.lang.StringBuilder buf)
Render to string.
|
java.lang.String |
toStringWithSimpleNames()
Render to string with simple names for classes.
|
public MethodInfo getMethodInfo()
MethodInfo for the defining method.MethodInfo for the defining method.public java.lang.String getName()
public int getModifiers()
public java.lang.String getModifiersStr()
getModifiers().public TypeSignature getTypeSignature()
public TypeSignature getTypeDescriptor()
public TypeSignature getTypeSignatureOrTypeDescriptor()
public AnnotationInfoList getAnnotationInfo()
AnnotationInfo for any annotations on this method parameter.public AnnotationInfo getAnnotationInfo(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Repeatable annotation on this method, or null if the method parameter does not have the
annotation. (Use getAnnotationInfoRepeatable(Class) for Repeatable annotations.)annotation - The annotation.AnnotationInfo object representing the annotation on this method parameter, or null if the
method parameter does not have the annotation.public AnnotationInfo getAnnotationInfo(java.lang.String annotationName)
Repeatable annotation on this method, or null if the method parameter does not
have the named annotation. (Use getAnnotationInfoRepeatable(String) for Repeatable
annotations.)annotationName - The annotation name.AnnotationInfo object representing the named annotation on this method parameter, or null
if the method parameter does not have the named annotation.public AnnotationInfoList getAnnotationInfoRepeatable(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Repeatable annotation on this method, or the empty list if the method parameter does not
have the annotation.annotation - The annotation.AnnotationInfoList containing all instances of the annotation on this method parameter, or
the empty list if the method parameter does not have the annotation.public AnnotationInfoList getAnnotationInfoRepeatable(java.lang.String annotationName)
Repeatable annotation on this method, or the empty list if the method parameter does
not have the named annotation.annotationName - The annotation name.AnnotationInfoList containing all instances of the named annotation on this method
parameter, or the empty list if the method parameter does not have the named annotation.public boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
annotation - The annotation.public boolean hasAnnotation(java.lang.String annotationName)
annotationName - The name of an annotation.protected void setScanResult(ScanResult scanResult)
scanResult - the new scan resultpublic boolean isFinal()
public boolean isSynthetic()
public boolean isMandated()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected void toString(boolean useSimpleNames,
java.lang.StringBuilder buf)
useSimpleNames - if true, use just the simple name of each class.buf - the bufpublic java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object