public final class FormalParameter extends java.lang.Object
ReflectionUtils.getFormalParameters(Method)
.ReflectionUtils.getFormalParameters(Method)
,
ReflectionUtils.invoke(Method, Object, java.util.Map)
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Two formal parameters are equal if their declaring methods and their
position within the formal parameter list are equal.
|
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> annotationClass)
Returns this element's annotation for the specified type if such an
annotation is present, else
null . |
java.lang.annotation.Annotation[] |
getAnnotations()
Get parameter annotations.
|
java.lang.reflect.Type |
getGenericType()
Get generic parameter type.
|
java.lang.reflect.Method |
getMethod()
Get the method that declares this formal parameter.
|
int |
getPosition()
Get the position of the formal parameter within the methods parameter
list.
|
java.lang.Class<?> |
getType()
Get parameter type.
|
int |
hashCode()
The hashcode is computed as the exclusive-or of the method's hashcode and
(position+1).
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns
true if an annotation of the specified type is
defined for this formal parameter. |
java.lang.String |
toString()
Returns method name, position and type.
|
public java.lang.reflect.Method getMethod()
public java.lang.Class<?> getType()
public java.lang.reflect.Type getGenericType()
public java.lang.annotation.Annotation[] getAnnotations()
public int getPosition()
public int hashCode()
hashCode
in class java.lang.Object
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationClass)
null
.public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
true
if an annotation of the specified type is
defined for this formal parameter.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object