Package com.thoughtworks.qdox.model

Examples of com.thoughtworks.qdox.model.JavaClass


        if ( fixTag( SINCE_TAG ) )
        {
            if ( !isJavaMethod )
            {
                JavaClass javaClass = (JavaClass) entity;

                if ( !ignoreClirr )
                {
                    if ( isNewClassFromLastVersion( javaClass ) )
                    {
View Full Code Here


        if ( javaMethod.getName().length() > 3 && ( javaMethod.getName().startsWith( "get" )
            || javaMethod.getName().startsWith( "set" ) ) )
        {
            String field = StringUtils.lowercaseFirstLetter( javaMethod.getName().substring( 3 ) );

            JavaClass clazz = javaMethod.getParentClass();

            if ( clazz.getFieldByName( field ) == null )
            {
                return "<p>" + javaMethod.getName() + ".</p>";
            }

            StringBuilder sb = new StringBuilder();
View Full Code Here

                                            Map<String, JavaClass> javaClassesMap )
    {

        for ( Map.Entry<String, MojoAnnotatedClass> entry : mojoAnnotatedClasses.entrySet() )
        {
            JavaClass javaClass = javaClassesMap.get( entry.getKey() );
            if ( javaClass == null )
            {
                continue;
            }

            // populate class-level content
            MojoAnnotationContent mojoAnnotationContent = entry.getValue().getMojo();
            if ( mojoAnnotationContent != null )
            {
                mojoAnnotationContent.setDescription( javaClass.getComment() );

                DocletTag since = findInClassHierarchy( javaClass, "since" );
                if ( since != null )
                {
                    mojoAnnotationContent.setSince( since.getValue() );
View Full Code Here

    {
        DocletTag tag = javaClass.getTagByName( tagName );

        if ( tag == null )
        {
            JavaClass superClass = javaClass.getSuperJavaClass();

            if ( superClass != null )
            {
                tag = findInClassHierarchy( superClass, tagName );
            }
View Full Code Here

    {
        Map<String, JavaField> rawParams = new TreeMap<String, com.thoughtworks.qdox.model.JavaField>();

        // we have to add the parent fields first, so that they will be overwritten by the local fields if
        // that actually happens...
        JavaClass superClass = javaClass.getSuperJavaClass();

        if ( superClass != null )
        {
            if ( superClass.getFields().length > 0 )
            {
                rawParams = extractFieldParameterTags( superClass, javaClassesMap );
            }
            // maybe sources comes from scan of sources artifact
            superClass = javaClassesMap.get( superClass.getFullyQualifiedName() );
            if ( superClass != null )
            {
                rawParams = extractFieldParameterTags( superClass, javaClassesMap );
            }
        }
View Full Code Here

    {
        DocletTag tag = javaClass.getTagByName( tagName );

        if ( tag == null )
        {
            JavaClass superClass = javaClass.getSuperJavaClass();

            if ( superClass != null )
            {
                tag = findInClassHierarchy( superClass, tagName );
            }
View Full Code Here

    {
        Map<String, JavaField> rawParams;

        // we have to add the parent fields first, so that they will be overwritten by the local fields if
        // that actually happens...
        JavaClass superClass = javaClass.getSuperJavaClass();

        if ( superClass != null )
        {
            rawParams = extractFieldParameterTags( superClass );
        }
View Full Code Here

                out("                throw (Error) _throwable;\n");
                out("            }\n");
                Set throwables = method.getThrowables();
                if (throwables != null) {
                    for (Iterator j = throwables.iterator(); j.hasNext();) {
                        JavaClass throwable = (JavaClass) j.next();
                        out("            else if (_throwable instanceof ").out(throwable.getFullyQualifiedName()).out(") {\n");
                        out("                throw (").out(throwable.getFullyQualifiedName()).out(") _throwable;\n");
                        out("            }\n");
                    }
                }
                out("            else {\n");
                out("                throw new java.lang.reflect.UndeclaredThrowableException(_throwable);\n");
View Full Code Here

        Set throwables = executable.getThrowables();
        if (throwables != null) {
            buffer.append("\n");
            buffer.append("            throws ");
            for (Iterator i = throwables.iterator(); i.hasNext();) {
                JavaClass throwable = (JavaClass) i.next();
                buffer.append(throwable.getFullyQualifiedName());
                if (i.hasNext()) {
                    buffer.append(", ");
                }
            }
        }
View Full Code Here

    public static Set getThrowables(JavaMethod javaMethod) {
        Set throwables = new HashSet();
        Type[] exceptions = javaMethod.getExceptions();
        for (int j = 0; j < exceptions.length; j++) {
            JavaClass throwable = exceptions[j].getJavaClass();
            throwables.add(throwable);
        }
        return throwables;
    }
View Full Code Here

TOP

Related Classes of com.thoughtworks.qdox.model.JavaClass

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.