public class MethodParameterInfo extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AnnotationInfoList |
getAnnotationInfo()
Method parameter annotation info (or null if no annotations).
|
AnnotationInfo |
getAnnotationInfo(Class<? extends Annotation> annotation)
Get a the non-
Repeatable annotation on this method, or null if the method parameter does not have the
annotation. |
AnnotationInfo |
getAnnotationInfo(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(Class<? extends 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(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.
|
String |
getModifiersStr()
Get the method parameter modifiers as a String, e.g.
|
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(Class<? extends Annotation> annotation)
Check whether this method parameter has the annotation.
|
boolean |
hasAnnotation(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.
|
String |
toString()
Render to string.
|
String |
toStringWithSimpleNames()
Render to string with simple names for classes.
|
public MethodInfo getMethodInfo()
MethodInfo
for the defining method.MethodInfo
for the defining method.public String getName()
public int getModifiers()
public 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(Class<? extends 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(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(Class<? extends 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(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(Class<? extends Annotation> annotation)
annotation
- The annotation.public boolean hasAnnotation(String annotationName)
annotationName
- The name of an annotation.public boolean isFinal()
public boolean isSynthetic()
public boolean isMandated()
public String toStringWithSimpleNames()
Copyright © 2022. All rights reserved.