148 lines
6.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
javax.annotation
</div>
<h2 class="title" title="Annotation Type Generated">Annotation Type Generated</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre><a href="../../java/lang/annotation/Documented.html" title="annotation in java.lang.annotation">@Documented</a>
<a href="../../java/lang/annotation/Retention.html" title="annotation in java.lang.annotation">@Retention</a>(<a href="../../java/lang/annotation/Retention.html#value--">value</a>=<a href="../../java/lang/annotation/RetentionPolicy.html#SOURCE">SOURCE</a>)
<a href="../../java/lang/annotation/Target.html" title="annotation in java.lang.annotation">@Target</a>(<a href="../../java/lang/annotation/Target.html#value--">value</a>={<a href="../../java/lang/annotation/ElementType.html#PACKAGE">PACKAGE</a>,<a href="../../java/lang/annotation/ElementType.html#TYPE">TYPE</a>,<a href="../../java/lang/annotation/ElementType.html#ANNOTATION_TYPE">ANNOTATION_TYPE</a>,<a href="../../java/lang/annotation/ElementType.html#METHOD">METHOD</a>,<a href="../../java/lang/annotation/ElementType.html#CONSTRUCTOR">CONSTRUCTOR</a>,<a href="../../java/lang/annotation/ElementType.html#FIELD">字段</a>,<a href="../../java/lang/annotation/ElementType.html#LOCAL_VARIABLE">LOCAL_VARIABLE</a>,<a href="../../java/lang/annotation/ElementType.html#PARAMETER">PARAMETER</a>})
public @interface <span class="memberNameLabel">Generated</span></pre>
<div class="block">
<span>生成的注释用于标记已生成的源代码。</span>
<span>它也可以用于在单个文件中区分用户编写的代码和生成的代码。</span>
<span>使用时,值元素必须具有代码生成器的名称。</span>
<span>推荐的约定是在值字段中使用代码生成器的完全限定名称。</span>
<p> <span>例如com.company.package.classname。</span> <span>date元素用于指示源生成的日期。</span> <span>日期元素必须遵循ISO 8601标准。</span> <span>例如date元素将具有以下值2001-07-04T120856.235-0700表示美国太平洋时间时区的当地时间2001-07-04 12:08:56。</span> </p>
<p> <span>comment元素是代码生成器可能希望包含在生成的代码中的任何注释的占位符。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
常见注释1.0
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== ANNOTATION TYPE REQUIRED MEMBER SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="annotation.type.required.element.summary">
<!-- --> </a> <h3>Required Element Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Required Element Summary table, listing required elements, and an explanation">
<caption>
<span>Required Elements</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Required Element and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../java/lang/String.html" title="class in java.lang">String</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/annotation/Generated.html#value--">value</a></span></code>
<div class="block">
值元素必须具有代码生成器的名称。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="annotation.type.optional.element.summary">
<!-- --> </a> <h3>Optional Element Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Optional Element Summary table, listing optional elements, and an explanation">
<caption>
<span>Optional Elements</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Optional Element and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/annotation/Generated.html#comments--">comments</a></span></code>
<div class="block">
代码生成器可能希望包含在生成的代码中的任何注释的占位符。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/annotation/Generated.html#date--">date</a></span></code>
<div class="block">
生成源的日期
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="annotation.type.element.detail">
<!-- --> </a> <h3>Element Detail</h3> <a name="value--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>value</h4> <pre>public abstract <a href="../../java/lang/String.html" title="class in java.lang">String</a>[] value</pre>
<div class="block">
<span>值元素必须具有代码生成器的名称。</span>
<span>推荐的惯例是使用代码生成器的完全限定名称。</span>
<span>例如com.acme.generator.CodeGen。</span>
</div> </li>
</ul> </li>
</ul>
<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="date--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>date</h4> <pre>public abstract <a href="../../java/lang/String.html" title="class in java.lang">String</a> date</pre>
<div class="block">
生成源的日期
</div>
<dl>
<dt>
Default:
</dt>
<dd>
“”
</dd>
</dl> </li>
</ul> </li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="comments--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>comments</h4> <pre>public abstract <a href="../../java/lang/String.html" title="class in java.lang">String</a> comments</pre>
<div class="block">
代码生成器可能希望包含在生成的代码中的任何注释的占位符。
</div>
<dl>
<dt>
Default:
</dt>
<dd>
“”
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>