com.viceversatech.rdfbeans.reflect
Class ReflectionUtil

java.lang.Object
  extended by com.viceversatech.rdfbeans.reflect.ReflectionUtil

public class ReflectionUtil
extends java.lang.Object

ReflectionUtil.

Author:
alex

Constructor Summary
ReflectionUtil()
           
 
Method Summary
static
<A extends java.lang.annotation.Annotation>
java.util.List<A>
getAllClassAnnotations(java.lang.Class cls, java.lang.Class<A> annotationType)
           
static java.lang.Class[] getAllInterfaces(java.lang.Class[] interfaces)
           
static
<A extends java.lang.annotation.Annotation>
A
getClassAnnotation(java.lang.Class cls, java.lang.Class<A> annotationType)
           
static java.lang.annotation.Annotation getMethodAnnotation(java.lang.reflect.Method method, java.lang.Class... annotationTypes)
           
static boolean isMatchingMethodSignatures(java.lang.reflect.Method method, java.lang.reflect.Method otherMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
Method Detail

getClassAnnotation

public static <A extends java.lang.annotation.Annotation> A getClassAnnotation(java.lang.Class cls,
                                                                               java.lang.Class<A> annotationType)

getAllClassAnnotations

public static <A extends java.lang.annotation.Annotation> java.util.List<A> getAllClassAnnotations(java.lang.Class cls,
                                                                                                   java.lang.Class<A> annotationType)

getMethodAnnotation

public static java.lang.annotation.Annotation getMethodAnnotation(java.lang.reflect.Method method,
                                                                  java.lang.Class... annotationTypes)

isMatchingMethodSignatures

public static boolean isMatchingMethodSignatures(java.lang.reflect.Method method,
                                                 java.lang.reflect.Method otherMethod)
Parameters:
method -
otherMethod -
Returns:

getAllInterfaces

public static java.lang.Class[] getAllInterfaces(java.lang.Class[] interfaces)


Copyright © 2011. All Rights Reserved.