Java Reflection Generic Type from Class getGenericSuperclass(Class cls)

Here you can find the source of getGenericSuperclass(Class cls)

Description

get Generic Superclass

License

Open Source License

Declaration

public static Type getGenericSuperclass(Class<?> cls) 

Method Source Code


//package com.java2s;

import java.lang.reflect.*;

public class Main {
    /**/* www .  j  a v  a2s  .c o m*/
     * @since 2.7
     */
    public static Type getGenericSuperclass(Class<?> cls) {
        return cls.getGenericSuperclass();
    }
}

Related

  1. getGenericParameterType(Class clazz, Integer parameterIndex)
  2. getGenericParameterType0(Class cls, Class genericSuper, int paramIndex)
  3. getGenerics(Class classType)
  4. getGenericsClass(Class cls)
  5. getGenericSuperclass(Class clazz)
  6. getGenericSuperclassActualTypes(Collection types, Class aClass)
  7. getGenericSuperType(Class clz, int index)
  8. getGenericSuperType(Class subclass, Class classWithParameter)
  9. getGenericSuperType(Class class1, Class class2)