public class ReflectionParameter
extends java.lang.Object
| Constructor and Description |
|---|
ReflectionParameter(java.lang.Class<?> parameterType,
java.lang.annotation.Annotation[] annotations,
int index) |
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.String |
getDefaultName()
Generate a default name for the parameter, since parameter names aren't available in Java 7's reflection API.
|
int |
getIndex() |
java.lang.Class<?> |
getParameterType() |
java.lang.String |
toString() |
public ReflectionParameter(java.lang.Class<?> parameterType,
java.lang.annotation.Annotation[] annotations,
int index)
public java.lang.Class<?> getParameterType()
public java.lang.annotation.Annotation[] getAnnotations()
public int getIndex()
public <T extends java.lang.annotation.Annotation> Opt<T> getAnnotation(java.lang.Class<T> annotationClass)
T - Type of annotation to find.annotationClass - Class of annotation to find.public java.lang.String getDefaultName()
public java.lang.String toString()
toString in class java.lang.Object