Package com.sun.javadoc

Examples of com.sun.javadoc.Tag


    private static void addResponseDoc( MethodDoc methodDoc,
            final MethodDocType methodDocType ) {
       
        final ResponseDocType responseDoc = new ResponseDocType();
       
        final Tag returnTag = getSingleTagOrNull( methodDoc, "return" );
        if ( returnTag != null ) {
            responseDoc.setReturnDoc( returnTag.text() );
        }
       
        final Tag[] responseParamTags = methodDoc.tags( "response.param" );
        for ( Tag responseParamTag : responseParamTags ) {
            // LOG.info( "Have responseparam tag: " + print( responseParamTag ) );
View Full Code Here


        return value == null || value.length() == 0 || value.trim().length() == 0 ? true : false;
    }

    private static void addRequestRepresentationDoc( MethodDoc methodDoc,
            final MethodDocType methodDocType ) {
        final Tag requestElement = getSingleTagOrNull( methodDoc, "request.representation.qname" );
        final Tag requestExample = getSingleTagOrNull( methodDoc, "request.representation.example" );
        if ( requestElement != null || requestExample != null ) {
            final RequestDocType requestDoc = new RequestDocType();
            final RepresentationDocType representationDoc = new RepresentationDocType();
           
            /* requestElement exists
View Full Code Here

        final StringBuilder sb = new StringBuilder();
        for ( final Iterator<Tag> iter = items.iterator(); iter.hasNext(); ) {
            if ( delimiter != null ) {
                sb.append( delimiter );
            }
            final Tag item = iter.next();
            sb.append( item.name() );
            if ( delimiter != null ) {
                sb.append( delimiter );
            }
            if ( iter.hasNext() ) {
                sb.append( separator );
View Full Code Here

    private static void addResponseDoc( MethodDoc methodDoc,
            final MethodDocType methodDocType ) {
       
        final ResponseDocType responseDoc = new ResponseDocType();
       
        final Tag returnTag = getSingleTagOrNull( methodDoc, "return" );
        if ( returnTag != null ) {
            responseDoc.setReturnDoc( returnTag.text() );
        }
       
        final Tag[] responseParamTags = methodDoc.tags( "response.param" );
        for ( Tag responseParamTag : responseParamTags ) {
            // LOG.info( "Have responseparam tag: " + print( responseParamTag ) );
View Full Code Here

        return value == null || value.length() == 0 || value.trim().length() == 0 ? true : false;
    }

    private static void addRequestRepresentationDoc( MethodDoc methodDoc,
            final MethodDocType methodDocType ) {
        final Tag requestElement = getSingleTagOrNull( methodDoc, "request.representation.qname" );
        final Tag requestExample = getSingleTagOrNull( methodDoc, "request.representation.example" );
        if ( requestElement != null || requestExample != null ) {
            final RequestDocType requestDoc = new RequestDocType();
            final RepresentationDocType representationDoc = new RepresentationDocType();
           
            /* requestElement exists
View Full Code Here

        final StringBuilder sb = new StringBuilder();
        for ( final Iterator<Tag> iter = items.iterator(); iter.hasNext(); ) {
            if ( delimiter != null ) {
                sb.append( delimiter );
            }
            final Tag item = iter.next();
            sb.append( item.name() );
            if ( delimiter != null ) {
                sb.append( delimiter );
            }
            if ( iter.hasNext() ) {
                sb.append( separator );
View Full Code Here

            return null;

        // This should only be invoked with 0 or 1 tags. I suppose someone could put @tapestrydoc in the comment block
        // more than once.

        Tag tag = tags[0];

        try
        {
            StringWriter writer = new StringWriter(5000);

            ClassDoc classDoc = (ClassDoc) tag.holder();

            if (firstSeen == null)
                firstSeen = classDoc;

            ClassDescription cd = getDescription(classDoc.qualifiedName());
View Full Code Here

                            javaDocMap.put(method.qualifiedName() + ".paramCommentTag." + i,
                                   paramTag.parameterComment());
                        }
                    }
                }
                Tag retTags[] = method.tags("return");
                if (retTags != null && retTags.length == 1) {
                    Tag retTag = method.tags("return")[0];
                    javaDocMap.put(method.qualifiedName() + "." + "returnCommentTag",
                                   retTag.text());
                }
            }
               
        }
        javaDocMap.store(fos, "");
View Full Code Here

  private void writeSummary(Tag[] tags) throws IOException {
    if(tags!=null && tags.length>0) {
      StringBuffer sb=new StringBuffer();
           
      for(int i=0; i < tags.length; i++) {
        Tag t = tags[i];
        String kind=t.kind();
        if(kind.equals("Text")) {
          sb.append(t.text()+" ");
        }
        else {
          //System.out.println("tag="+t.getClass());
        }
      }
View Full Code Here

TOP

Related Classes of com.sun.javadoc.Tag

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.