org.reflext.jlr
Class JavaLangReflectMethodModel

java.lang.Object
  extended by org.reflext.jlr.JavaLangReflectMethodModel
All Implemented Interfaces:
MethodModel<Type,Method>

public class JavaLangReflectMethodModel
extends Object
implements MethodModel<Type,Method>

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
JavaLangReflectMethodModel()
           
 
Method Summary
 AccessScope getAccess(Method method)
           
<A extends Annotation>
A
getDeclaredAnnotation(Method method, Class<A> annotationClass)
           
 Iterable<Method> getDeclaredMethods(Type classType)
           
 Method getGenericDeclaration(Type typeVariable)
           
 String getName(Method method)
           
 Type getOwner(Method method)
           
 Iterable<Type> getParameterTypes(Method method)
           
 Type getReturnType(Method method)
           
 Iterable<Type> getTypeParameters(Method method)
           
 boolean isAbstract(Method method)
           
 boolean isFinal(Method method)
           
 boolean isStatic(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLangReflectMethodModel

public JavaLangReflectMethodModel()
Method Detail

getDeclaredMethods

public Iterable<Method> getDeclaredMethods(Type classType)
Specified by:
getDeclaredMethods in interface MethodModel<Type,Method>

getParameterTypes

public Iterable<Type> getParameterTypes(Method method)
Specified by:
getParameterTypes in interface MethodModel<Type,Method>

getName

public String getName(Method method)
Specified by:
getName in interface MethodModel<Type,Method>

getReturnType

public Type getReturnType(Method method)
Specified by:
getReturnType in interface MethodModel<Type,Method>

getAccess

public AccessScope getAccess(Method method)
Specified by:
getAccess in interface MethodModel<Type,Method>

isAbstract

public boolean isAbstract(Method method)
Specified by:
isAbstract in interface MethodModel<Type,Method>

isStatic

public boolean isStatic(Method method)
Specified by:
isStatic in interface MethodModel<Type,Method>

isFinal

public boolean isFinal(Method method)
Specified by:
isFinal in interface MethodModel<Type,Method>

getTypeParameters

public Iterable<Type> getTypeParameters(Method method)
Specified by:
getTypeParameters in interface MethodModel<Type,Method>

getOwner

public Type getOwner(Method method)
Specified by:
getOwner in interface MethodModel<Type,Method>

getGenericDeclaration

public Method getGenericDeclaration(Type typeVariable)
Specified by:
getGenericDeclaration in interface MethodModel<Type,Method>

getDeclaredAnnotation

public <A extends Annotation> A getDeclaredAnnotation(Method method,
                                                      Class<A> annotationClass)
Specified by:
getDeclaredAnnotation in interface MethodModel<Type,Method>


Copyright © 2009 eXo Platform SAS. All Rights Reserved.