private void printInlineTags ( Tag [ ] tags , ClassDoc classDoc ) { for ( Tag tag : tags ) { if ( ( tag instanceof SeeTag ) && tag . name ( ) . equals ( "@link" ) ) { SeeTag seeTag = ( SeeTag ) tag ; boolean sameClass = seeTag . referencedClass ( ) == classDoc ; String fullClassName = seeTag . referencedClassName ( ) ; String memberName = seeTag . referencedMemberName ( ) ; String className = fullClassName . substring ( fullClassName . lastIndexOf ( ' ' ) + 1 ) ; List < String > nameParts = new ArrayList <> ( ) ; if ( ! sameClass ) { nameParts . add ( className ) ; } if ( memberName != null ) { nameParts . add ( memberName ) ; } String name = Strings . join ( nameParts , "." ) ; if ( fullClassName . lastIndexOf ( ' ' ) >= 0 ) { String packageName = fullClassName . substring ( 0 , fullClassName . lastIndexOf ( ' ' ) ) ; String urlPrefix = "" ; if ( ! sameClass && packageName . startsWith ( "com.qspin." ) && ! packageName . equals ( "com.qspin.qtaste.testapi.api" ) ) { String javaDocDir = packageName . startsWith ( "com.qspin.qtaste." ) ? QTaste_JAVADOC_URL_PREFIX : SUT_JAVADOC_URL_PREFIX ; urlPrefix = javaDocDir + packageName . replace ( ' ' , ' ' ) + "/" ; } String url = ( sameClass ? "" : urlPrefix + className + ".html" ) + ( memberName != null ? "#" + memberName : "" ) ; mOut . print ( "<A HREF=\"" + url + "\">" + name + "</A>" ) ; } else { mOut . print ( name ) ; } } else { mOut . print ( tag . text ( ) ) ; } } }
Prints inline tags in HTML format .