Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 285
نمايش فراداده

Package java.lang.annotation

Java 5.0

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;