private static void addSuperInterfacesToSet(Class type, Set set) { Class[] ifaces = type.getInterfaces(); for (int i = 0, len = ifaces.length; i < len; ++i) { set.add( ifaces[i] ); addSuperInterfacesToSet( ifaces[i], set ); } }
public static Class forName(String fqcnOrPrimitive ) throws ClassNotFoundException { Class out = classForPrimitive( fqcnOrPrimitive ); if (out == null) out = Class.forName( fqcnOrPrimitive ); return out; }
public static String resolvableTypeName( Class type, String[] importPkgs, String[] importClasses ) throws ClassNotFoundException { String simpleName = simpleClassName( type ); try { classForSimpleName( simpleName, importPkgs, importClasses ); } catch ( AmbiguousClassNameException e ) { return type.getName(); } return simpleName; }
Class[] paramTypes = new Class[ slen ]; for (int i = 0; i < slen; ++i) paramTypes[i] = ClassUtils.forName( signature[i] );
public static String simpleClassName( Class cl ) { return ClassUtils.simpleClassName( cl ); }
Class out = classForPrimitive( simpleName ); String importSimpleName = fqcnLastElement( importClasses[i] ); if (! checkSet.add( importSimpleName ) ) throw new IllegalArgumentException("Duplicate imported classes: " +
if ( ClassUtils.isPrimitive( simpleTypeName ) ) Class propType = ClassUtils.classForPrimitive( simpleTypeName );
public static Class forName( String fqOrSimple, String[] importPkgs, String[] importClasses ) throws AmbiguousClassNameException, ClassNotFoundException { try { return Class.forName( fqOrSimple ); } catch ( ClassNotFoundException e ) { return classForSimpleName( fqOrSimple, importPkgs, importClasses ); } }
/** * @return fully qualified class name last element */ public static String fqcnLastElement(String fqcn) { return ClassUtils.fqcnLastElement( fqcn ); }
Class[] paramTypes = new Class[ slen ]; for (int i = 0; i < slen; ++i) paramTypes[i] = ClassUtils.forName( signature[i] );
public static String simpleClassName( Class cl ) { return ClassUtils.simpleClassName( cl ); }
Class out = classForPrimitive( simpleName ); String importSimpleName = fqcnLastElement( importClasses[i] ); if (! checkSet.add( importSimpleName ) ) throw new IllegalArgumentException("Duplicate imported classes: " +
if ( ClassUtils.isPrimitive( simpleTypeName ) ) Class propType = ClassUtils.classForPrimitive( simpleTypeName );
public static Class forName( String fqOrSimple, String[] importPkgs, String[] importClasses ) throws AmbiguousClassNameException, ClassNotFoundException { try { return Class.forName( fqOrSimple ); } catch ( ClassNotFoundException e ) { return classForSimpleName( fqOrSimple, importPkgs, importClasses ); } }
/** * @return fully qualified class name last element */ public static String fqcnLastElement(String fqcn) { return ClassUtils.fqcnLastElement( fqcn ); }
Class[] paramTypes = new Class[ slen ]; for (int i = 0; i < slen; ++i) paramTypes[i] = ClassUtils.forName( signature[i] );
public static String simpleClassName( Class cl ) { return ClassUtils.simpleClassName( cl ); }
public static String resolvableTypeName( Class type, String[] importPkgs, String[] importClasses ) throws ClassNotFoundException { String simpleName = simpleClassName( type ); try { classForSimpleName( simpleName, importPkgs, importClasses ); } catch ( AmbiguousClassNameException e ) { return type.getName(); } return simpleName; }
Class out = classForPrimitive( simpleName ); String importSimpleName = fqcnLastElement( importClasses[i] ); if (! checkSet.add( importSimpleName ) ) throw new IllegalArgumentException("Duplicate imported classes: " +
if ( ClassUtils.isPrimitive( simpleTypeName ) ) Class propType = ClassUtils.classForPrimitive( simpleTypeName );