Annotation Interface SupportedModes


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface SupportedModes
The values of the -Amode option that a checker supports. Each names a group of options that the checker turns on, defined by its SourceChecker.addOptionsForMode(java.lang.String, java.util.Map<java.lang.String, java.lang.String>) override.

SourceChecker.getSupportedModes() collects these annotations from the checker's class hierarchy and from its subcheckers; write this annotation on the class whose addOptionsForMode handles the mode. It is deliberately not @Inherited: the collection walks the hierarchy itself and reads each class's declared annotation, so that a subclass declaring its own modes adds to its superclass's rather than hiding them.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the supported mode names.
  • Element Details

    • value

      String[] value
      Returns the supported mode names.
      Returns:
      the supported mode names