com.almende.util
Class AnnotationUtil.AnnotatedMethod

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

public static class AnnotationUtil.AnnotatedMethod
extends Object

AnnotatedMethod describes a method and its parameters.


Constructor Summary
AnnotationUtil.AnnotatedMethod(Method method)
           
 
Method Summary
 Method getActualMethod()
          Get the actual Java method described by this AnnotatedMethod.
<T> T
getAnnotation(Class<T> type)
          Get an annotation of this method by type.
 List<Annotation> getAnnotations()
          Get all annotations of this method, defined in all implementations and interfaces of the class.
 Type getGenericReturnType()
          Get the generic return type of the method
 String getName()
          Get the method name
 List<AnnotationUtil.AnnotatedParam> getParams()
          Get all parameter annotations of this method, defined in all implementations and interfaces of the methods declaring class.
 Class<?> getReturnType()
          Get the return type of the method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtil.AnnotatedMethod

public AnnotationUtil.AnnotatedMethod(Method method)
Method Detail

getActualMethod

public Method getActualMethod()
Get the actual Java method described by this AnnotatedMethod.

Returns:
method

getName

public String getName()
Get the method name

Returns:
name

getReturnType

public Class<?> getReturnType()
Get the return type of the method

Returns:
returnType

getGenericReturnType

public Type getGenericReturnType()
Get the generic return type of the method

Returns:
genericType

getAnnotations

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

Returns:
annotations

getAnnotation

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

Parameters:
annotationClass -
Returns:
annotation

getParams

public List<AnnotationUtil.AnnotatedParam> getParams()
Get all parameter annotations of this method, defined in all implementations and interfaces of the methods declaring class.

Returns:
params


Copyright © 2013 Almende BV. All Rights Reserved.