Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.annotation |
Provides library support for the Java programming language annotation facility.
|
Modifier and Type | Class and Description |
---|---|
interface |
Deprecated
A program element annotated @Deprecated is one that programmers
are discouraged from using, typically because it is dangerous,
or because a better alternative exists.
|
interface |
Override
Indicates that a method declaration is intended to override a
method declaration in a supertype.
|
interface |
SuppressWarnings
Indicates that the named compiler warnings should be suppressed in the
annotated element (and in all program elements contained in the annotated
element).
|
Modifier and Type | Class and Description |
---|---|
interface |
Documented
Indicates that annotations with a type are to be documented by javadoc
and similar tools by default.
|
interface |
Inherited
Indicates that an annotation type is automatically inherited.
|
interface |
Native
Indicates that a field defining a constant value may be referenced
from native code.
|
interface |
Repeatable
The annotation type
java.lang.annotation.Repeatable is
used to indicate that the annotation type whose declaration it
(meta-)annotates is repeatable. |
interface |
Retention
Indicates how long annotations with the annotated type are to
be retained.
|
interface |
Target
Indicates the kinds of program element to which an annotation type
is applicable.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.