Class Default
java.lang.Object
org.checkerframework.framework.util.defaults.Default
- All Implemented Interfaces:
Comparable<Default>
Represents a mapping from an Annotation to a TypeUseLocation it should be applied to during
defaulting. The Comparable ordering of this class first tests location then tests annotation
ordering (via
AnnotationUtils
).
It also has a handy toString method that is useful for debugging.
-
Field Summary
Modifier and TypeFieldDescriptionfinal AnnotationMirror
The default annotation mirror.final boolean
Whether the default should be inherited by subpackages.final TypeUseLocation
The type use location. -
Constructor Summary
ConstructorDescriptionDefault
(AnnotationMirror anno, TypeUseLocation location, boolean applyToSubpackages) Construct a Default object. -
Method Summary
-
Field Details
-
anno
The default annotation mirror. -
location
The type use location. -
applyToSubpackages
public final boolean applyToSubpackagesWhether the default should be inherited by subpackages.
-
-
Constructor Details
-
Default
Construct a Default object.- Parameters:
anno
- the default annotation mirrorlocation
- the type use locationapplyToSubpackages
- whether the default should be inherited by subpackages
-
-
Method Details