private String getFormalTypeParameters ( boolean namesOnly ) { Collection < TypeParameterDeclaration > ftColl = _typeDecl . getFormalTypeParameters ( ) ; if ( ftColl . size ( ) == 0 ) return "" ; StringBuffer sb = new StringBuffer ( "<" ) ; boolean isFirst = true ; for ( TypeParameterDeclaration tpDecl : ftColl ) { if ( ! isFirst ) sb . append ( "," ) ; else isFirst = false ; if ( namesOnly ) sb . append ( tpDecl . getSimpleName ( ) ) ; else sb . append ( tpDecl . toString ( ) ) ; } sb . append ( ">" ) ; return sb . toString ( ) ; }
Helper method to return type parameter information