checkers.quals.Bottom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker-quals-jdk5 Show documentation
Show all versions of checker-quals-jdk5 Show documentation
Annotations ("type qualifiers") from the checker framework,
backported so they can be used in pre-JDK8 applications
package checkers.quals;
import java.lang.annotation.Target;
/**
* A special annotation intended solely for representing the bottom type in
* the qualifier hierarchy.
* This qualifier is only used automatically if the existing qualifiers do not have a
* bottom type.
* Other type systems could reuse this qualifier instead of introducing their own
* dedicated bottom qualifier. The programmer would then use methods like
* {@link checkers.types.TreeAnnotator#addTreeKind(com.sun.source.tree.Tree.Kind, javax.lang.model.element.AnnotationMirror)} to
* add implicit annotations and needs to manually add the bottom qualifier to the
* qualifier hierarchy.
*
*
* This annotation may not be written in source code; it is an
* implementation detail of the checker.
*
* @see checkers.types.QualifierHierarchy#getBottomAnnotations()
*/
@TypeQualifier
@SubtypeOf({})
@Target({}) // empty target prevents programmers from writing this in a program
public @interface Bottom { }