com.mysema.util
Class ReflectionUtils

java.lang.Object
  extended by com.mysema.util.ReflectionUtils

public final class ReflectionUtils
extends Object

Author:
tiwe

Method Summary
static AnnotatedElement getAnnotatedElement(Class<?> beanClass, String propertyName, Class<?> propertyClass)
           
static Method getGetterOrNull(Class<?> beanClass, String name, Class<?> type)
           
static Set<Class<?>> getImplementedInterfaces(Class<?> cl)
           
static Class<?> getTypeParameter(Type type, int index)
           
static int getTypeParameterCount(Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnnotatedElement

public static AnnotatedElement getAnnotatedElement(Class<?> beanClass,
                                                   String propertyName,
                                                   Class<?> propertyClass)

getGetterOrNull

@Nullable
public static Method getGetterOrNull(Class<?> beanClass,
                                              String name,
                                              Class<?> type)

getTypeParameterCount

public static int getTypeParameterCount(Type type)

getTypeParameter

@Nullable
public static Class<?> getTypeParameter(Type type,
                                                 int index)

getImplementedInterfaces

public static Set<Class<?>> getImplementedInterfaces(Class<?> cl)


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.