Top Description Methods
org.checkerframework.framework.qual

public @Interface UpperBoundFor

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:ANNOTATION_TYPE
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

A meta-annotation applied to the declaration of a type qualifier. It specifies that the annotation should be the upper bound for An example is the declaration

@DefaultFor(classes=String.class)
@interface MyAnno {}

The upper bound applies to every occurrence of the given classes and also to every occurrence of the given type kinds.

Method Summary

Modifier and TypeMethod and Description
public TypeKind[]

Returns:

TypeKinds of types that get an upper bound
typeKinds
()

Returns TypeKinds of types that get an upper bound.

public Class<?>[]

Returns:

Classes that get an upper bound
types
()

Returns Classes that should get an upper bound.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

typeKindsback to summary
public TypeKind[] typeKinds()

Returns TypeKinds of types that get an upper bound. The meta-annotated annotation is the upper bound.

Returns:TypeKind[]

TypeKinds of types that get an upper bound

typesback to summary
public Class<?>[] types()

Returns Classes that should get an upper bound. The meta-annotated annotation is the upper bound.

Returns:Class<?>[]

Classes that get an upper bound