xref: /aosp_15_r20/external/stardoc/stardoc/templates/html_tables/rule.vm (revision b2fa42943c124aa9c7163734493fc7a7559681cf)
1<a id="${ruleName}"></a>
2
3#[[##]]# ${ruleName}
4
5<pre>
6${util.ruleSummary($ruleName, $ruleInfo)}
7</pre>
8
9${util.htmlEscape($ruleInfo.docString)}
10
11#[[###]]# Attributes
12
13#if (!$ruleInfo.getAttributeList().isEmpty())
14<table class="params-table">
15<colgroup>
16<col class="col-param" />
17<col class="col-description" />
18</colgroup>
19<tbody>
20#foreach ($attribute in $ruleInfo.getAttributeList())
21<tr id="${ruleName}-${attribute.name}">
22<td><code>${attribute.name}</code></td>
23<td>
24
25${util.attributeTypeString($attribute)}; ${util.mandatoryString($attribute)}
26
27#if (!$attribute.docString.isEmpty())
28<p>
29
30${attribute.docString.trim()}
31
32</p>
33#end
34#if (!$attribute.getProviderNameGroupList().isEmpty())
35<p>
36
37The dependencies of this attribute must provide: ${util.attributeProviders($attribute)}
38
39</p>
40#end
41</td>
42</tr>
43#end
44</tbody>
45</table>
46#end
47