public Content getTypeParameterLinks ( LinkInfo linkInfo , boolean isClassLabel ) { Content links = newContent ( ) ; Type [ ] vars ; if ( linkInfo . executableMemberDoc != null ) { vars = linkInfo . executableMemberDoc . typeParameters ( ) ; } else if ( linkInfo . type != null && linkInfo . type . asParameterizedType ( ) != null ) { vars = linkInfo . type . asParameterizedType ( ) . typeArguments ( ) ; } else if ( linkInfo . classDoc != null ) { vars = linkInfo . classDoc . typeParameters ( ) ; } else { //Nothing to document. return links ; } if ( ( ( linkInfo . includeTypeInClassLinkLabel && isClassLabel ) || ( linkInfo . includeTypeAsSepLink && ! isClassLabel ) ) && vars . length > 0 ) { links . addContent ( "<" ) ; for ( int i = 0 ; i < vars . length ; i ++ ) { if ( i > 0 ) { links . addContent ( "," ) ; } links . addContent ( getTypeParameterLink ( linkInfo , vars [ i ] ) ) ; } links . addContent ( ">" ) ; } return links ; }
Return the links to the type parameters .