Class GenericsClassHelper

java.lang.Object
org.eclipse.persistence.internal.jaxb.GenericsClassHelper

public class GenericsClassHelper extends Object
Utility class for Generic class hierarchy.
  • Constructor Details

    • GenericsClassHelper

      public GenericsClassHelper()
  • Method Details

    • getParameterizedTypeArguments

      public static Type[] getParameterizedTypeArguments(Class<?> concrete, Class<?> classOrIface)
      Get the parameterized type arguments for a declaring class that declares a generic class or interface type.
      Parameters:
      concrete - the concrete class than directly or indirectly implements or extends an interface class.
      classOrIface - the interface or class.
      Returns:
      the parameterized type arguments, or null if the generic interface type is not a parameterized type.
    • getClassOfType

      protected static Class<?> getClassOfType(Type type)