com.caucho.config.reflect
Class AnnotatedTypeUtil

java.lang.Object
  extended by com.caucho.config.reflect.AnnotatedTypeUtil

@Module
public class AnnotatedTypeUtil
extends java.lang.Object

Abstract introspected view of a Bean


Constructor Summary
AnnotatedTypeUtil()
           
 
Method Summary
static java.lang.reflect.Method findDeclaredMethod(java.lang.Class<?> cl, java.lang.reflect.Method testMethod)
          Finds any method matching the method name and parameter types.
static
<X> AnnotatedMethod<? super X>
findMethod(AnnotatedType<X> type, AnnotatedMethod<?> method)
          Finds any method matching the method name and parameter types.
static
<X> AnnotatedMethod<? super X>
findMethod(AnnotatedType<X> type, java.lang.reflect.Method javaMethod)
          Finds any method matching the method name and parameter types.
static
<X> AnnotatedMethod<? super X>
findMethod(AnnotatedType<X> type, java.lang.String methodName, java.lang.Class<?>[] param)
          Finds any method matching the method name and parameter types.
static
<X> AnnotatedMethod<? super X>
findMethod(java.util.Collection<AnnotatedMethod<? super X>> methodList, AnnotatedMethod<?> method)
          Finds any method matching the method name and parameter types.
static java.lang.reflect.Method findMethod(java.util.Collection<java.lang.reflect.Method> methods, java.lang.reflect.Method testMethod)
          Finds any method matching the method name and parameter types.
static java.lang.reflect.Method findMethod(java.lang.reflect.Method[] methods, java.lang.reflect.Method testMethod)
          Finds any method matching the method name and parameter types.
static
<X> AnnotatedMethod<? super X>
findMethod(java.util.Set<AnnotatedMethod<? super X>> methods, java.lang.reflect.Method method)
          Finds any method matching the method name and parameter types.
static
<X> AnnotatedMethod<? super X>
findMethod(java.util.Set<AnnotatedMethod<? super X>> methods, java.lang.String methodName, java.lang.Class<?>[] param)
          Finds any method matching the method name and parameter types.
static BaseType getBaseType(Annotated annotated)
           
static boolean hasException(AnnotatedMethod<?> method, java.lang.Class<?> exn)
          Tests if a method throws a checked exception.
static boolean isMatch(AnnotatedMethod<?> methodA, AnnotatedMethod<?> methodB)
          Tests if two annotated methods are equivalent.
static boolean isMatch(AnnotatedMethod<?> method, java.lang.String name, java.lang.Class<?>[] param)
          Tests if an annotated method matches a name and parameter types.
static boolean isMatch(java.lang.Class<?>[] paramA, java.lang.Class<?>[] paramB)
          Tests if parameters match a method's parameter types.
static boolean isMatch(java.lang.reflect.Method methodA, java.lang.reflect.Method methodB)
          Tests if an annotated method matches a name and parameter types.
static boolean isMatch(java.lang.reflect.Method javaMethod, java.lang.String name, java.lang.Class<?>[] param)
          Tests if an annotated method matches a name and parameter types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedTypeUtil

public AnnotatedTypeUtil()
Method Detail

findMethod

public static <X> AnnotatedMethod<? super X> findMethod(AnnotatedType<X> type,
                                                        AnnotatedMethod<?> method)
Finds any method matching the method name and parameter types.


findMethod

public static <X> AnnotatedMethod<? super X> findMethod(java.util.Collection<AnnotatedMethod<? super X>> methodList,
                                                        AnnotatedMethod<?> method)
Finds any method matching the method name and parameter types.


findMethod

public static <X> AnnotatedMethod<? super X> findMethod(AnnotatedType<X> type,
                                                        java.lang.reflect.Method javaMethod)
Finds any method matching the method name and parameter types.


findMethod

public static <X> AnnotatedMethod<? super X> findMethod(AnnotatedType<X> type,
                                                        java.lang.String methodName,
                                                        java.lang.Class<?>[] param)
Finds any method matching the method name and parameter types.


findMethod

public static <X> AnnotatedMethod<? super X> findMethod(java.util.Set<AnnotatedMethod<? super X>> methods,
                                                        java.lang.reflect.Method method)
Finds any method matching the method name and parameter types.


findMethod

public static <X> AnnotatedMethod<? super X> findMethod(java.util.Set<AnnotatedMethod<? super X>> methods,
                                                        java.lang.String methodName,
                                                        java.lang.Class<?>[] param)
Finds any method matching the method name and parameter types.


findDeclaredMethod

public static java.lang.reflect.Method findDeclaredMethod(java.lang.Class<?> cl,
                                                          java.lang.reflect.Method testMethod)
Finds any method matching the method name and parameter types.


findMethod

public static java.lang.reflect.Method findMethod(java.lang.reflect.Method[] methods,
                                                  java.lang.reflect.Method testMethod)
Finds any method matching the method name and parameter types.


findMethod

public static java.lang.reflect.Method findMethod(java.util.Collection<java.lang.reflect.Method> methods,
                                                  java.lang.reflect.Method testMethod)
Finds any method matching the method name and parameter types.


isMatch

public static boolean isMatch(AnnotatedMethod<?> methodA,
                              AnnotatedMethod<?> methodB)
Tests if two annotated methods are equivalent.


isMatch

public static boolean isMatch(AnnotatedMethod<?> method,
                              java.lang.String name,
                              java.lang.Class<?>[] param)
Tests if an annotated method matches a name and parameter types.


isMatch

public static boolean isMatch(java.lang.reflect.Method javaMethod,
                              java.lang.String name,
                              java.lang.Class<?>[] param)
Tests if an annotated method matches a name and parameter types.


isMatch

public static boolean isMatch(java.lang.reflect.Method methodA,
                              java.lang.reflect.Method methodB)
Tests if an annotated method matches a name and parameter types.


isMatch

public static boolean isMatch(java.lang.Class<?>[] paramA,
                              java.lang.Class<?>[] paramB)
Tests if parameters match a method's parameter types.


hasException

public static boolean hasException(AnnotatedMethod<?> method,
                                   java.lang.Class<?> exn)
Tests if a method throws a checked exception.


getBaseType

public static BaseType getBaseType(Annotated annotated)