public class Parameter extends Object implements AnnotatedElement
Constructor and Description |
---|
Parameter(int index,
Class<?> type,
Annotation[] declaredAnnotations) |
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Class<?> |
getType()
Returns a
Class object that identifies the
declared type for the parameter represented by this
Parameter object. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public Parameter(int index, Class<?> type, Annotation[] declaredAnnotations)
public Class<?> getType()
Class
object that identifies the
declared type for the parameter represented by this
Parameter
object.Class
object identifying the declared
type of the parameter represented by this objectpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2018. All rights reserved.