aosp12/external/doclava/res/assets/templates-sdk/packages.cs

60 lines
1.9 KiB
C#

<?cs # THIS CREATES A LIST OF ALL PACKAGES AND NAMES IT packages.html ?>
<?cs include:"macros.cs" ?>
<?cs include:"doctype.cs" ?>
<html<?cs if:devsite ?> devsite<?cs /if ?>>
<?cs include:"head_tag.cs" ?>
<?cs include:"body_tag.cs" ?>
<?cs include:"header.cs" ?>
<h1><?cs var:page.title ?></h1>
<p>These are the API packages.
See all <a href="classes.html">API classes</a>.</p>
<?cs set:count = #1 ?>
<table>
<?cs each:pkg = docs.packages ?>
<tr <?cs
if:pkg.since
?>data-version-added="<?cs var:pkg.since ?>"<?cs
/if ?><?cs
if:pkg.deprecatedsince
?> data-version-deprecated="<?cs var:pkg.deprecatedsince ?>"<?cs
/if ?> >
<td class="jd-linkcol"><?cs call:package_link(pkg) ?></td>
<td class="jd-descrcol" width="100%"><?cs call:tag_list(pkg.shortDescr) ?></td>
</tr>
<?cs set:count = count + #1 ?>
<?cs /each ?>
</table>
<?cs if:devsite ?>
<div class="data-reference-resources-wrapper">
<?cs if:subcount(class.package) ?>
<ul data-reference-resources>
<?cs call:list("Annotations", class.package.annotations) ?>
<?cs call:list("Interfaces", class.package.interfaces) ?>
<?cs call:list("Classes", class.package.classes) ?>
<?cs call:list("Enums", class.package.enums) ?>
<?cs call:list("Exceptions", class.package.exceptions) ?>
<?cs call:list("Errors", class.package.errors) ?>
</ul>
<?cs elif:subcount(package) ?>
<ul data-reference-resources>
<?cs call:class_link_list("Annotations", package.annotations) ?>
<?cs call:class_link_list("Interfaces", package.interfaces) ?>
<?cs call:class_link_list("Classes", package.classes) ?>
<?cs call:class_link_list("Enums", package.enums) ?>
<?cs call:class_link_list("Exceptions", package.exceptions) ?>
<?cs call:class_link_list("Errors", package.errors) ?>
</ul>
<?cs /if ?>
</div>
<?cs /if ?>
<?cs if:!devsite ?>
<?cs include:"footer.cs" ?>
<?cs include:"trailer.cs" ?>
<?cs /if ?>
</body>
</html>