java.lang.Object
org.checkerframework.framework.util.defaults.Default
All Implemented Interfaces:
Comparable<Default>

public class Default extends Object implements 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 Details

    • anno

      public final AnnotationMirror anno
      The default annotation mirror.
    • location

      public final TypeUseLocation location
      The type use location.
    • applyToSubpackages

      public final boolean applyToSubpackages
      Whether the default should be inherited by subpackages.
  • Constructor Details

    • Default

      public Default(AnnotationMirror anno, TypeUseLocation location, boolean applyToSubpackages)
      Construct a Default object.
      Parameters:
      anno - the default annotation mirror
      location - the type use location
      applyToSubpackages - whether the default should be inherited by subpackages
  • Method Details