9a12a2f82f
also add override for implementation to the to-root link path. bug: 27667787 Change-Id: I79892ddb7c5053d5325afcd50016c726b34e1361
44 lines
No EOL
1.5 KiB
C#
44 lines
No EOL
1.5 KiB
C#
<?cs # Create a comma separated list of annotations on obj that were in showAnnotations in Doclava ?>
|
|
<?cs # pre is an HTML string to start the list, post is an HTML string to close the list ?>
|
|
<?cs # for example call:show_annotations_list(cl, "<td>Annotations: ", "</td>") ?>
|
|
<?cs # if obj has nothing on obj.showAnnotations, nothing will be output ?>
|
|
<?cs def:show_annotations_list(obj) ?>
|
|
<?cs each:anno = obj.showAnnotations ?>
|
|
<?cs if:first(anno) ?>
|
|
<span class='annotation-message'>
|
|
Included in documentation by the annotations:
|
|
<?cs /if ?>
|
|
@<?cs var:anno.type.label ?>
|
|
<?cs if:last(anno) == 0 ?>
|
|
,
|
|
<?cs /if ?>
|
|
<?cs if:last(anno)?>
|
|
</span>
|
|
<?cs /if ?>
|
|
<?cs /each ?>
|
|
<?cs /def ?>
|
|
|
|
<?cs # Override default class_link_table to display annotations ?>
|
|
<?cs def:class_link_table(classes) ?>
|
|
<?cs set:count = #1 ?>
|
|
<table class="jd-sumtable-expando">
|
|
<?cs each:cl=classes ?>
|
|
<tr class="<?cs if:count % #2 ?>alt-color<?cs /if ?> api apilevel-<?cs var:cl.type.since ?>" >
|
|
<td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td>
|
|
<td class="jd-descrcol" width="100%">
|
|
<?cs call:short_descr(cl) ?>
|
|
<?cs call:show_annotations_list(cl) ?>
|
|
</td>
|
|
</tr>
|
|
<?cs set:count = count + #1 ?>
|
|
<?cs /each ?>
|
|
</table>
|
|
<?cs /def ?>
|
|
|
|
<?cs def:doc_root_override() ?><?cs
|
|
if:referenceonly
|
|
?>https://developer.android.com/<?cs
|
|
else ?><?cs
|
|
var:toroot ?><?cs
|
|
/if ?><?cs
|
|
/def ?> |