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
FieldsModifier and TypeFieldDescriptionfinal AnnotationMirrorThe default annotation mirror.final booleanWhether the default should be inherited by subpackages.final TypeUseLocationThe type use location. -
Constructor Summary
ConstructorsConstructorDescriptionDefault(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