All Downloads are FREE. Search and download functionalities are using the official Maven repository.

checkers.quals.Bottom Maven / Gradle / Ivy

Go to download

Annotations ("type qualifiers") from the checker framework, backported so they can be used in pre-JDK8 applications

There is a newer version: 1.7.5
Show newest version
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 { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy