Lines Matching refs:cs

1 <?cs # A link to a package ?><?cs
3 <a href="<?cs var:toroot ?><?cs var:pkg.link ?>"><?cs var:pkg.name ?></a><?cs
8 <?cs # A link to a type, or not if it is a primitive type
20 ?><?cs
21 def:type_link_impl(type, link) ?><?cs call:type_link_impl2(type, link, "false") ?><?cs /def ?><?cs
22 def:type_link_impl2(type, link, nav) ?><?cs
23 if:type.link && link=="true" ?><?cs
24 if:type.federated ?><a href="<?cs var:type.link ?>"><?cs
25 var:type.label ?></a><?cs
26 else ?><a href="<?cs var:toroot ?><?cs var:type.link ?>"><?cs var:type.label ?></a><?cs
27 /if ?><?cs
28 else ?><?cs var:type.label ?><?cs
29 /if ?><?cs
30 if:subcount(type.extendsBounds) ?><?cs
31 each:t=type.extendsBounds ?><?cs
32 if:first(t) ?>&nbsp;extends&nbsp;<?cs else ?>&nbsp;&amp;&nbsp;<?cs /if ?><?cs
33 call:type_link_impl(t, "true") ?><?cs
34 /each ?><?cs
35 /if ?><?cs
36 if:subcount(type.superBounds) ?><?cs
37 each:t=type.superBounds ?><?cs
38 if:first(t) ?>&nbsp;super&nbsp;<?cs else ?>&nbsp;&amp;&nbsp;<?cs /if ?><?cs
39 call:type_link_impl(t, "true") ?><?cs
40 /each ?><?cs
41 /if ?><?cs
43 ?>&lt;<?cs each:t=type.typeArguments ?><?cs call:type_link_impl(t, "true") ?><?cs
44 if:!last(t) ?>,&nbsp;<?cs /if ?><?cs
45 /each ?>&gt;<?cs
46 /if ?><?cs
49 <?cs
50 def:simple_type_link(type)?><?cs
51 if:type.link?><?cs
52 if:type.federated ?><a href="<?cs var:type.link ?>"><?cs var:type.label ?></a><?cs
53 else ?><a href="<?cs var:toroot ?><?cs var:type.link ?>"><?cs var:type.label ?></a><?cs
54 /if?><?cs
55 else ?><?cs var:type.label ?><?cs
56 /if?><?cs
57 if:subcount(type.typeArguments)?>&lt;<?cs
58 each:t=type.typeArguments?><?cs
59 call:type_link_impl(t, "true")?><?cs
60 if:!last(t) ?>,&nbsp;<?cs
61 /if ?><?cs
62 /each ?>&gt;<?cs
63 /if ?><?cs
66 <?cs def:class_name(type) ?><?cs call:type_link_impl(type, "false") ?><?cs /def ?>
67 <?cs def:type_link2(type,nav) ?><?cs call:type_link_impl2(type, "true", nav) ?><?cs /def ?>
68 <?cs def:type_link(type) ?><?cs call:type_link2(type, "false") ?><?cs /def ?>
70 <?cs # a conditional link.
73 ?><?cs
74 def:cond_link(text, root, path, condition) ?><?cs
75 …a href="<?cs var:root ?><?cs var:path ?>"><?cs /if ?><?cs var:text ?><?cs if:condition ?></a><?cs
78 <?cs # A comma separated parameter list ?><?cs
79 def:parameter_list(params) ?><?cs
80 each:param = params ?><?cs
81 call:simple_type_link(param.type)?> <?cs
82 var:param.name ?><?cs
83 if: name(param)!=subcount(params)-1?>, <?cs /if ?><?cs
84 /each ?><?cs
87 <?cs def:doc_root_override()
88 ?><?cs var:toroot ?><?cs
91 <?cs # Print a list of tags (e.g. description text ?><?cs
92 def:tag_list(tags) ?><?cs
93 each:tag = tags ?><?cs
94 if:tag.name == "Text" ?><?cs var:tag.text?><?cs
95 elif:tag.kind == "@more" ?><p><?cs
99 /if ?><?cs var:tag.href ?>"><?cs var:tag.label ?></a></code><?cs
103 /if ?><?cs var:tag.href ?>"><?cs var:tag.label ?></a></a><?cs
104 elif:tag.kind == "@seeHref" ?><a href="<?cs var:tag.href ?>"><?cs var:tag.label ?></a><?cs
105 elif:tag.kind == "@seeJustLabel" ?><?cs var:tag.label ?><?cs
109 /if ?><?cs var:tag.href ?>"><?cs var:tag.text ?></a></code><?cs
110 elif:tag.kind == "@code" ?><code><?cs var:tag.text ?></code><?cs
111 elif:tag.kind == "@samplecode" ?><pre><?cs var:tag.text ?></pre><?cs
112 elif:tag.name == "@sample" ?><pre><?cs var:tag.text ?></pre><?cs
113 elif:tag.name == "@include" ?><?cs var:tag.text ?><?cs
114 elif:tag.kind == "@docRoot" ?><?cs call:doc_root_override() ?><?cs
115 elif:tag.kind == "@sdkCurrent" ?><?cs var:sdk.current ?><?cs
116 elif:tag.kind == "@sdkCurrentVersion" ?><?cs var:sdk.version ?><?cs
117 elif:tag.kind == "@sdkCurrentRelId" ?><?cs var:sdk.rel.id ?><?cs
118 elif:tag.kind == "@sdkPlatformVersion" ?><?cs var:sdk.platform.version ?><?cs
119 elif:tag.kind == "@sdkPlatformApiLevel" ?><?cs var:sdk.platform.apiLevel ?><?cs
120 elif:tag.kind == "@sdkPlatformMajorMinor" ?><?cs var:sdk.platform.majorMinor ?><?cs
121 elif:tag.kind == "@sdkPlatformReleaseDate" ?><?cs var:sdk.platform.releaseDate ?><?cs
122 elif:tag.kind == "@sdkPlatformDeployableDate" ?><?cs var:sdk.platform.deployableDate ?><?cs
123 elif:tag.kind == "@adtZipVersion" ?><?cs var:adt.zip.version ?><?cs
124 elif:tag.kind == "@adtZipDownload" ?><?cs var:adt.zip.download ?><?cs
125 elif:tag.kind == "@adtZipBytes" ?><?cs var:adt.zip.bytes ?><?cs
126 elif:tag.kind == "@adtZipChecksum" ?><?cs var:adt.zip.checksum ?><?cs
127 elif:tag.kind == "@inheritDoc" ?><?cs # This is the case when @inheritDoc is in something
128 that does not inherit from anything?><?cs
129 elif:tag.kind == "@attr" ?><?cs
130 else ?>{<?cs var:tag.name?> <?cs var:tag.text ?>}<?cs
131 /if ?><?cs
132 /each ?><?cs
135 <?cs # Print output for block tags that are not "standard" javadoc tags ?><?cs
136 def:block_tag_list(tags) ?><?cs
137 each:tag = tags ?><?cs
141 <ul class="nolist"><li><?cs call:tag_list(tag.commentTags) ?></li></ul>
142 </div><?cs
143 /if ?><?cs
147 <ul class="nolist"><li><?cs call:tag_list(tag.commentTags) ?></li></ul>
148 </div><?cs
149 /if ?><?cs
153 <ul class="nolist"><li><?cs call:tag_list(tag.commentTags) ?></li></ul>
154 </div><?cs
155 /if ?><?cs
156 /each ?><?cs
159 <?cs # Show the short-form description of something. These come from shortDescr and deprecated ?><…
160 def:short_descr(obj) ?><?cs
161 if:subcount(obj.deprecated) ?><em><?cs
163 This <?cs var:obj.kind ?> was deprecated
164 in API level <?cs var:obj.deprecatedsince ?>.<?cs
166 This <?cs var:obj.kind ?> is deprecated.<?cs
168 <?cs call:tag_list(obj.deprecated) ?></em><?cs
169 else ?><?cs call:tag_list(obj.shortDescr) ?><?cs
170 if:subcount(obj.annotationdocumentation)?><?cs
172 <div><?cs var:annodoc.text?></div><?cs
173 /each?><?cs /if?><?cs
174 /if ?><?cs
178 <?cs
185 # ?><?cs
186 def:show_annotations_list(obj, pre, between, post) ?><?cs
187 each:anno = obj.showAnnotations ?><?cs
188 if:first(anno) ?><?cs
189 var:pre ?><?cs
191 @<?cs var:anno.type.label ?>(<?cs
192 each:elem = anno.elementValues ?><?cs
193 var:elem.name ?>&nbsp;=&nbsp;<?cs
194 var:elem.value ?><?cs
195 if:last(elem) == 0 ?>, <?cs
196 /if ?><?cs
197 /each ?>)<?cs
198 if:last(anno) == 0 ?><?cs
199 var:between ?><?cs
200 /if ?><?cs
201 if:last(anno) ?><?cs
202 var:post ?><?cs
203 /if ?><?cs
204 /each ?><?cs
207 <?cs # Show a comma-separated list of annotations associated with obj ?><?cs
208 def:show_simple_annotations_list(obj, pre, post) ?><?cs
209 call:show_annotations_list(obj, pre, ", ", post) ?><?cs
212 <?cs # Show the red box with the deprecated warning ?><?cs
213 def:deprecated_warning(obj) ?><?cs
215 <p class="caution"><strong><?cs
217 This <?cs var:obj.kind ?> was deprecated
218 in API level <?cs var:obj.deprecatedsince ?>.<?cs
220 This <?cs var:obj.kind ?> is deprecated.<?cs
222 <?cs call:tag_list(obj.deprecated) ?>
223 </p><?cs
224 /if ?><?cs
227 <?cs # print the See Also: section ?><?cs
228 def:see_also_tags(also) ?><?cs
232 <ul class="nolist"><?cs
233 each:tag=also ?><li><?cs
234 if:tag.kind == "@see" ?><code><a href="<?cs var:toroot ?><?cs var:tag.href ?>"><?cs
235 var:tag.label ?></a></code><?cs
236 … elif:tag.kind == "@seeHref" ?><a href="<?cs var:tag.href ?>"><?cs var:tag.label ?></a><?cs
237 elif:tag.kind == "@seeJustLabel" ?><?cs var:tag.label ?><?cs
238 else ?>[ERROR: Unknown @see kind]<?cs
239 /if ?></li><?cs
242 </div><?cs
244 <?cs /def ?>
246 <?cs # print the API Level ?><?cs
247 def:since_tags(obj) ?><?cs
249 …ot ?>guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level <?cs var:obj.since ?></a><?cs
250 /if ?><?cs
252 <?cs def:federated_refs(obj) ?>
253 <?cs if:subcount(obj.federated) ?>
256 <?cs each:federated=obj.federated ?>
257 <a href="<?cs var:federated.url ?>"><?cs var:federated.name ?></a><?cs
258 if:!last(federated) ?>,<?cs /if ?>
259 <?cs /each ?>
261 <?cs /if ?>
262 <?cs /def ?>
263 <?cs
268 ?><?cs
269 def:description(obj) ?><?cs
271 <p><?cs call:tag_list(obj.descr) ?></p><?cs
272 if:subcount(obj.annotationdocumentation)?><?cs
274 <div style="display:block"><?cs var:annodoc.text?></div><?cs
275 /each?><?cs /if?><?cs
278 <ul class="nolist"><?cs
280 <li><a href="<?cs var:toroot ?><?cs var:attr.href ?>"><?cs var:attr.name ?></a></li><?cs
282 </ul><?cs
283 /if ?><?cs
285 <?cs call:block_tag_list(obj.blockTags) ?><?cs
286 /if ?><?cs
290 ?><?cs
293 <tr><th colspan=2>Parameters</th></tr><?cs
296 <td><code><?cs
297 if:param.isTypeParameter ?>&lt;<?cs
298 /if ?><?cs var:param.name ?><?cs
299 if:param.isTypeParameter ?>&gt;<?cs
302 <code><?cs var:param.kind ?></code><?cs
304 ?>:<?cs # Do not print if param comment is an HTML comment ?><?cs
306 <?cs call:tag_list(param.comment) ?></td>
307 </tr><?cs
309 </table><?cs
310 /if ?><?cs
314 ?><?cs
319 <td><code><?cs call:type_link(method.returnType) ?></code></td>
320 <td width="100%"><?cs call:tag_list(obj.returns) ?></td>
322 </table><?cs
326 ?><?cs
331 <td><code><?cs call:type_link(method.returnType) ?></code></td>
334 </table><?cs
335 /if ?><?cs
339 ?><?cs
342 <tr><th colspan=2>Throws</th></tr><?cs
345 <td><code><?cs call:type_link(tag.type) ?></code></td>
346 <td width="100%"><?cs call:tag_list(tag.comment) ?></td>
347 </tr><?cs
350 <?cs
351 /if ?><?cs
352 call:see_also_tags(obj.seeAlso) ?><?cs
355 <?cs # A table of links to classes with descriptions, as in a package file or the nested classes ?>…
356 def:class_link_table(classes) ?><?cs
358 <table class="jd-sumtable-expando"><?cs
361 <td><?cs call:type_link(cl.type) ?></td>
362 <td width="100%"><?cs call:short_descr(cl) ?>&nbsp;</td>
363 </tr><?cs set:count = count + #1 ?><?cs
365 </table><?cs
368 <?cs # A list of links to classes, for use in the side navigation of classes when viewing a package…
369 def:class_link_list(label, classes) ?><?cs
371 <li><h2><?cs var:label ?></h2>
372 <ul><?cs
374 …<li class="api apilevel-<?cs var:cl.type.since ?>"><?cs call:type_link2(cl.type,"true") ?></li><?cs
377 </li><?cs
378 /if ?><?cs
381 <?cs # A list of links to classes, for use in the side navigation of classes when viewing a class (…
382 def:list(label, classes) ?><?cs
384 <li><h2><?cs var:label ?></h2>
385 <ul><?cs
387 …>selected <?cs /if ?>api apilevel-<?cs var:cl.since ?>"><?cs call:type_link2(cl,"true") ?></li><?cs
390 </li><?cs
391 /if ?><?cs
394 <?cs # A list of links to packages, for use in the side navigation of packages (panel nav) ?><?cs
395 def:package_link_list(packages) ?><?cs
397 …e)?>selected <?cs /if ?>api apilevel-<?cs var:pkg.since ?>"><?cs call:package_link(pkg) ?></li><?cs
398 /each ?><?cs
401 <?cs # An expando trigger ?><?cs
407 class="jd-expando-trigger-img" /></a><?cs
410 <?cs # An expandable list of classes ?><?cs
415 <?cs if:default != "list" ?>style="display: none;"<?cs /if ?>
417 <?cs if:subcount(classes) <= #20 ?>
418 <?cs each:cl=classes ?>
419 <?cs call:type_link(cl.type) ?><?cs if:!last(cl) ?>,<?cs /if ?>
420 <?cs /each ?>
421 <?cs else ?>
422 <?cs set:leftovers = subcount(classes) - #15 ?>
423 <?cs loop:i = #0, #14, #1 ?>
424 <?cs with:cl=classes[i] ?>
425 <?cs call:type_link(cl.type) ?>,
426 <?cs /with ?>
427 <?cs if:(#i == #14) ?>and
429 var:id ?>', null))"><?cs var:leftovers ?> others.</a>
430 <?cs /if ?>
431 <?cs /loop ?>
432 <?cs /if ?>
435 <?cs if:default != "summary" ?>style="display: none;"<?cs /if ?>
436 ><?cs
439 </div><?cs
442 <?cs include:"components.cs" ?>