com.viceversatech.rdfbeans.reflect
Class ReflectionUtil
java.lang.Object
com.viceversatech.rdfbeans.reflect.ReflectionUtil
public class ReflectionUtil
- extends java.lang.Object
ReflectionUtil.
- Author:
- alex
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 |
ReflectionUtil
public ReflectionUtil()
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.