Debian Codegraph @

src/jakarta/annotation/Generated.java

raw symbols SCIP
1 /*
2 * Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0, which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
8 * This Source Code may also be made available under the following Secondary
9 * Licenses when the conditions for such availability set forth in the
10 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 * version 2 with the GNU Classpath Exception, which is available at
12 * https://www.gnu.org/software/classpath/license.html.
13 *
14 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 */
16
17 package jakarta.annotation;
18 import java.lang.annotation.*;
19 import static java.lang.annotation.ElementType.*;
20 import static java.lang.annotation.RetentionPolicy.*;
21
22 /**
23 * The <code>Generated</code> annotation is used to mark source code
24 * that has been generated.
25 * It can also be used to differentiate user written code from generated code
26 * in a single file.
27 * <p>The <code>value</code> element must have the name of the
28 * code generator. The recommended convention is to use the fully qualified
29 * name of the code generator in the value field,
30 * for example <code>com.company.package.classname</code>.</p>
31 * <p>The <code>date</code> element is used to indicate the date the
32 * source was generated.
33 * The <code>date</code> element must follow the ISO 8601 standard.
34 * For example, the <code>date</code> element could have the
35 * value <code>2001-07-04T12:08:56.235-0700</code>,
36 * which represents 2001-07-04 12:08:56 local time in the U.S. Pacific
37 * time zone.</p>
38 * <p>The <code>comment</code> element is a place holder for any comments
39 * that the code generator may want to include in the generated code.</p>
40 *
41 * @since 1.6, Common Annotations 1.0
42 */
43
44 @Documented
45 @Retention(SOURCE)
46 @Target({PACKAGE, TYPE, ANNOTATION_TYPE, METHOD, CONSTRUCTOR, FIELD,
47 LOCAL_VARIABLE, PARAMETER})
48 public @interface Generated {
49 /**
50 * The value element must have the name of the code generator.
51 * The recommended convention is to use the fully qualified name of the
52 * code generator. For example: <code>com.acme.generator.CodeGen</code>.
53 */
54 String[] value();
55
56 /**
57 * Date when the source was generated.
58 */
59 String date() default "";
60
61 /**
62 * A place holder for any comments that the code generator may want to
63 * include in the generated code.
64 */
65 String comments() default "";
66 }
67