public class MethodParameter
extends java.lang.Object
Parameter.| Constructor and Description |
|---|
MethodParameter(java.lang.reflect.Method method,
int parameterIndex) |
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.reflect.Method |
getMethod() |
java.lang.Class<?> |
getParameterGenericType() |
int |
getParameterIndex() |
java.lang.String |
getParameterName()
Try looking for the parameter name in the compiled .class file.
|
java.lang.Class<?> |
getParameterType() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) |
public MethodParameter(java.lang.reflect.Method method,
int parameterIndex)
public java.lang.reflect.Method getMethod()
public int getParameterIndex()
public java.lang.String getParameterName()
public java.lang.Class<?> getParameterType()
public java.lang.Class<?> getParameterGenericType()
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
Copyright © 2023. All rights reserved.