/** * Get the information for an array type * * @param type the array type * @return the info */ protected T getGenericArrayType(GenericArrayType type) { // TODO JBMICROCONT-131 this needs implementing properly return get(Object[].class); }
/** * Get the information for a wildcard type * * @param type the paremeterized type * @return the info */ protected T getWildcardType(WildcardType type) { // TODO JBMICROCONT-131 improve this return get(type.getUpperBounds()[0]); }
/** * Get the information for a type variable * * @param <D> the declaration * @param type the type variable * @return the info */ protected <D extends GenericDeclaration> T getTypeVariable(TypeVariable<D> type) { // TODO JBMICROCONT-131 improve this return get(type.getBounds()[0]); }
/** * Get the information for a class * * @param name the name * @param cl the classloader * @return the info * @throws ClassNotFoundException when the class cannot be found */ public T get(String name, ClassLoader cl) throws ClassNotFoundException { if (name == null) throw new IllegalArgumentException("Null name"); if (cl == null) throw new IllegalArgumentException("Null classloader"); Class<?> clazz = cl.loadClass(name); return get(clazz); }