Name
Package java.lang.annotation
Synopsis
This
package defines the framework for annotations. It includes the base
Annotation
interface that all annotation types
extend, meta-annotation types, their associated
enumerated types, and exception and error
classes related to annotations. The most important members of this
package are the meta-annotation types: Documented
,
Inherited
, Retention
, and
Target
.
Interfaces
public interface Annotation;
Enumerated Types
public enum ElementType; public enum RetentionPolicy;
Annotation Types
public @interface Documented; public @interface Inherited; public @interface Retention; public @interface Target;
Exceptions
public class AnnotationTypeMismatchException extends RuntimeException; public class IncompleteAnnotationException extends RuntimeException;
Errors
public class AnnotationFormatError extends Error;
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.