/** * Gets all the interfaces on this particular class (but not any * superclasses of this class). */ private static void addAllGenericInterfaces(Class<?> rawClass , Type type, Set<Type> closures) { Map<String, Type> typeArgumentsMap = null; for (Type currentType : rawClass.getGenericInterfaces()) { if (type instanceof ParameterizedType && currentType instanceof ParameterizedType) { if (typeArgumentsMap == null ) { typeArgumentsMap = getTypeArguments(rawClass, (ParameterizedType) type); } currentType = fixTypeVariables((ParameterizedType) currentType, typeArgumentsMap); } closures.add(currentType); rawClass = ReflectionHelper.getRawClass(currentType); if (rawClass != null) { addAllGenericInterfaces(rawClass, currentType, closures); } } }
/** * Gets all the interfaces on this particular class (but not any * superclasses of this class). */ private static void addAllGenericInterfaces(Class<?> rawClass , Type type, Set<Type> closures) { Map<String, Type> typeArgumentsMap = null; for (Type currentType : rawClass.getGenericInterfaces()) { if (type instanceof ParameterizedType && currentType instanceof ParameterizedType) { if (typeArgumentsMap == null ) { typeArgumentsMap = getTypeArguments(rawClass, (ParameterizedType) type); } currentType = fixTypeVariables((ParameterizedType) currentType, typeArgumentsMap); } closures.add(currentType); rawClass = ReflectionHelper.getRawClass(currentType); if (rawClass != null) { addAllGenericInterfaces(rawClass, currentType, closures); } } }
/** * Gets all the interfaces on this particular class (but not any * superclasses of this class). */ private static void addAllGenericInterfaces(Class<?> rawClass , Type type, Set<Type> closures) { Map<String, Type> typeArgumentsMap = null; for (Type currentType : rawClass.getGenericInterfaces()) { if (type instanceof ParameterizedType && currentType instanceof ParameterizedType) { if (typeArgumentsMap == null ) { typeArgumentsMap = getTypeArguments(rawClass, (ParameterizedType) type); } currentType = fixTypeVariables((ParameterizedType) currentType, typeArgumentsMap); } closures.add(currentType); rawClass = ReflectionHelper.getRawClass(currentType); if (rawClass != null) { addAllGenericInterfaces(rawClass, currentType, closures); } } }
/** * Gets all the interfaces on this particular class (but not any * superclasses of this class). */ private static void addAllGenericInterfaces(Class<?> rawClass , Type type, Set<Type> closures) { Map<String, Type> typeArgumentsMap = null; for (Type currentType : rawClass.getGenericInterfaces()) { if (type instanceof ParameterizedType && currentType instanceof ParameterizedType) { if (typeArgumentsMap == null ) { typeArgumentsMap = getTypeArguments(rawClass, (ParameterizedType) type); } currentType = fixTypeVariables((ParameterizedType) currentType, typeArgumentsMap); } closures.add(currentType); rawClass = ReflectionHelper.getRawClass(currentType); if (rawClass != null) { addAllGenericInterfaces(rawClass, currentType, closures); } } }
addAllGenericInterfaces(rawClass, currentType, retVal);
addAllGenericInterfaces(rawClass, currentType, retVal);
addAllGenericInterfaces(rawClass, currentType, retVal);
addAllGenericInterfaces(rawClass, currentType, retVal);