01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with this
04: * work for additional information regarding copyright ownership. The ASF
05: * licenses this file to you under the Apache License, Version 2.0 (the
06: * "License"); you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17:
18: package java.lang.annotation;
19:
20: /**
21: * <p>
22: * An enumeration of element types.
23: * </p>
24: *
25: * @since 1.5
26: */
27: public enum ElementType {
28: /**
29: * <p>
30: * Class, interface or enum declaration.
31: * </p>
32: */
33: TYPE,
34: /**
35: * <p>
36: * Field declaration.
37: * </p>
38: */
39: FIELD,
40: /**
41: * <p>
42: * Method declaration.
43: * </p>
44: */
45: METHOD,
46: /**
47: * <p>
48: * Parameter declaration.
49: * </p>
50: */
51: PARAMETER,
52: /**
53: * <p>
54: * Constructor declaration.
55: * </p>
56: */
57: CONSTRUCTOR,
58: /**
59: * <p>
60: * Local variable declaration.
61: * </p>
62: */
63: LOCAL_VARIABLE,
64: /**
65: * <p>
66: * Annotation type declaration.
67: * </p>
68: */
69: ANNOTATION_TYPE,
70: /**
71: * <p>
72: * Package declaration.
73: * </p>
74: */
75: PACKAGE
76: }
|