public class Parameter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Annotation[] |
m_annotations |
protected Class<?> |
m_type |
| Modifier | Constructor and Description |
|---|---|
protected |
Parameter(Class<?> type,
Annotation[] annotations) |
| Modifier and Type | Method and Description |
|---|---|
static Parameter[] |
fromMethod(Method method)
Returns an array of Parameter objects that represent all the parameters to the underlying method
|
<T> T |
getAnnotation(Class<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null
|
Annotation[] |
getAnnotations()
Returns annotations that are present on this element
|
Class<?> |
getType()
Returns a Class object that identifies the declared type for the parameter represented by this Parameter object
|
protected Class<?> m_type
protected Annotation[] m_annotations
protected Parameter(Class<?> type, Annotation[] annotations)
public static Parameter[] fromMethod(Method method)
public <T> T getAnnotation(Class<T> annotationClass)
public Annotation[] getAnnotations()
public Class<?> getType()
Copyright © 2015. All rights reserved.