Class TypeParameterResolver


  • public class TypeParameterResolver
    extends java.lang.Object
    Author:
    Iwao AVE!
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.reflect.Type resolveFieldType​(java.lang.reflect.Field field, java.lang.reflect.Type srcType)  
      static java.lang.reflect.Type[] resolveParamTypes​(java.lang.reflect.Method method, java.lang.reflect.Type srcType)  
      static java.lang.reflect.Type resolveReturnType​(java.lang.reflect.Method method, java.lang.reflect.Type srcType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveFieldType

        public static java.lang.reflect.Type resolveFieldType​(java.lang.reflect.Field field,
                                                              java.lang.reflect.Type srcType)
        Returns:
        The field type as Type. If it has type parameters in the declaration,
        they will be resolved to the actual runtime Types.
      • resolveReturnType

        public static java.lang.reflect.Type resolveReturnType​(java.lang.reflect.Method method,
                                                               java.lang.reflect.Type srcType)
        Returns:
        The return type of the method as Type. If it has type parameters in the declaration,
        they will be resolved to the actual runtime Types.
      • resolveParamTypes

        public static java.lang.reflect.Type[] resolveParamTypes​(java.lang.reflect.Method method,
                                                                 java.lang.reflect.Type srcType)
        Returns:
        The parameter types of the method as an array of Types. If they have type parameters in the declaration,
        they will be resolved to the actual runtime Types.