com.almende.util
Class AnnotationUtil.AnnotatedParam

java.lang.Object
  extended by com.almende.util.AnnotationUtil.AnnotatedParam
Enclosing class:
AnnotationUtil

public static class AnnotationUtil.AnnotatedParam
extends Object

AnnotatedParam describes all annotations of a parameter.


Method Summary
<T> T
getAnnotation(Class<T> type)
          Get an annotation of this parameter by type.
 List<Annotation> getAnnotations()
          Get all annotations of this parameter, defined in all implementations and interfaces of the class.
 Type getGenericType()
          Get the generic type of the parameter
 Class<?> getType()
          Get the type of the parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnnotations

public List<Annotation> getAnnotations()
Get all annotations of this parameter, defined in all implementations and interfaces of the class.

Returns:
annotations

getAnnotation

public <T> T getAnnotation(Class<T> type)
Get an annotation of this parameter by type. Returns null if not available.

Parameters:
annotationClass -
Returns:
annotation

getType

public Class<?> getType()
Get the type of the parameter

Returns:
type

getGenericType

public Type getGenericType()
Get the generic type of the parameter

Returns:
genericType


Copyright © 2013 Almende BV. All Rights Reserved.