Annotation Interface StubFiles


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface StubFiles
An annotation on a SourceChecker subclass to provide additional stub files that should be used in addition to jdk.astub. This allows larger compound checkers to separate the annotations into multiple files, or to provide annotations for non-JDK classes.

A checker inherits the stub files of the nearest superclass that declares this annotation, unless it declares its own @StubFiles annotation. Furthermore, stub files are shared bidirectionally between compound checkers and their subcheckers.

See the Checker Framework Manual:
Annotated JDK
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Stub file names.
  • Element Details

    • value

      String[] value
      Stub file names. These are basenames: they include the extension (usually ".astub"), but no directory component.
      Returns:
      the stub file names