159b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartapackage checkers.quals; 259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 359b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta/** 459b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * Specifies the locations to which a {@link DefaultQualifier} annotation applies. 559b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * 659b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * @see DefaultQualifier 759b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta */ 859b2e6871c65f58fdad78cd7229c292f6a177578Scott Bartapublic enum DefaultLocation { 959b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 1059b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta /** Apply default annotations to all unannotated types. */ 1159b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta ALL, 1259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 1359b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta /** Apply default annotations to all unannotated types except the raw types 1459b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * of locals. */ 1559b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta ALL_EXCEPT_LOCALS, 1659b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 1759b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta /** Apply default annotations to unannotated upper bounds: both 1859b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * explicit ones in <tt>extends</tt> clauses, and implicit upper bounds 1959b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * when no explicit <tt>extends</tt> or <tt>super</tt> clause is 2059b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta * present. */ 2159b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta // Especially useful for parameterized classes that provide a lot of 2259b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta // static methods with the same generic parameters as the class. 2359b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta UPPER_BOUNDS; 2459b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta 2559b2e6871c65f58fdad78cd7229c292f6a177578Scott Barta} 26