Top Description Annotations Classes Enums
[default module]

Package org.eclipse.jdt.annotation


This package contains annotations that can trigger special behavior when annotated types are compiled by the Eclipse Compiler for Java.

Currently, the package contains annotations that specify nullness contracts for annotated elements.

Additionally, class Checks provides utility methods for performing checked type conversions.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
NonNull

Qualifier for a reference type in a TYPE_USE position: The type that has this annotation is intended to not include the value null.

public @interface
NonNullByDefault

Applying this annotation to a declaration has the effect that type references, which are contained in the declaration, and for which a null annotation is otherwise lacking, should be considered as @NonNull.

public @interface
NotOwning

This annotation allows to specify absence of responsibility for certain objects as they are passed from one method to another.

public @interface
Nullable

Qualifier for a reference type in a TYPE_USE position: The type that has this annotation explicitly includes the value null.

public @interface
Owning

This annotation allows to specify responsibility for certain objects as they are passed from one method to another.

Class Summary

Modifier and TypeClass and Description
public class
Checks

Utility functions intended for use with the null annotations defined in this package.

Enum Summary

Modifier and TypeEnum and Description
public enum
DefaultLocation

Locations that can be affected by a NonNullByDefault annotation.