Class FenumChecker

  • All Implemented Interfaces:
    javax.annotation.processing.Processor, OptionConfiguration

    @StubFiles("jdnc.astub")
    @SupportedOptions({"quals","qualDirs"})
    public class FenumChecker
    extends BaseTypeChecker
    The main checker class for the Fake Enum Checker.

    There are two options to distinguish different enumerators:

    1. @Fenum("Name"): introduces a fake enumerator with the name "Name". Enumerators with different names are distinct. The default name is empty, but you are encouraged to use a unique name for your purpose.
    2. Alternatively, you can specify the annotation to use with the -Aqual command line argument.
    See the Checker Framework Manual:
    Fake Enum Checker
    • Constructor Detail

      • FenumChecker

        public FenumChecker()
    • Method Detail

      • getSuppressWarningsPrefixes

        public java.util.NavigableSet<java.lang.String> getSuppressWarningsPrefixes()
        Description copied from class: SourceChecker
        Returns a modifiable set of lower-case strings that are prefixes for SuppressWarnings strings.

        The collection must not be empty and must not contain only SourceChecker.SUPPRESS_ALL_PREFIX.

        Overrides:
        getSuppressWarningsPrefixes in class SourceChecker
        Returns:
        non-empty modifiable set of lower-case prefixes for SuppressWarnings strings