author | chegar |
Sun, 17 Aug 2014 15:54:13 +0100 | |
changeset 25859 | 3317bb8137f4 |
parent 14506 | jdk/src/share/classes/java/lang/annotation/Native.java@9c33711ec566 |
permissions | -rw-r--r-- |
14506
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
1 |
/* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
2 |
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
4 |
* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
10 |
* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
15 |
* accompanied this code). |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
16 |
* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
20 |
* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
23 |
* questions. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
24 |
*/ |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
25 |
|
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
26 |
package java.lang.annotation; |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
27 |
|
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
28 |
|
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
29 |
/** |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
30 |
* Indicates that a field defining a constant value may be referenced |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
31 |
* from native code. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
32 |
* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
33 |
* The annotation may be used as a hint by tools that generate native |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
34 |
* header files to determine whether a header file is required, and |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
35 |
* if so, what declarations it should contain. |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
36 |
* |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
37 |
* @since 1.8 |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
38 |
*/ |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
39 |
@Documented |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
40 |
@Target(ElementType.FIELD) |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
41 |
@Retention(RetentionPolicy.SOURCE) |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
42 |
public @interface Native { |
9c33711ec566
8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
jjg
parents:
diff
changeset
|
43 |
} |