Package com.thoughtworks.qdox.parser.structs

Examples of com.thoughtworks.qdox.parser.structs.TypeDef


        if (clazz.isInterface()) {
            // It's an interface
            classDef.type = ClassDef.INTERFACE;
            for (int i = 0; i < interfaces.length; i++) {
                Class anInterface = interfaces[i];
                classDef.extendz.add(new TypeDef(anInterface.getName()));
            }
        } else {
            // It's a class
            for (int i = 0; i < interfaces.length; i++) {
                Class anInterface = interfaces[i];
                classDef.implementz.add(new TypeDef(anInterface.getName()));
            }
            Class superclass = clazz.getSuperclass();
            if (superclass != null) {
                classDef.extendz.add(new TypeDef(superclass.getName()));
            }
        }

        addModifiers(classDef.modifiers, clazz.getModifiers());
View Full Code Here


    private static String getTypeName(Class c) {
        return c.getComponentType() != null ? c.getComponentType().getName() : c.getName();
    }
   
    private static TypeDef getTypeDef(Class c) {
        return new TypeDef(getTypeName(c));
    }
View Full Code Here

    }

    public Type createType( String typeName, int dimensions ) {
        if( typeName == null || typeName.equals( "" ) )
            return null;
        return createType(new TypeDef(typeName), dimensions);
    }
View Full Code Here

TOP

Related Classes of com.thoughtworks.qdox.parser.structs.TypeDef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.