Annotation Interface Indexable


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface Indexable
Marker for an annotation type which can be indexed. You can then use Index to find all annotated elements together with the annotations without necessarily loading any classes.

The annotation may use any RetentionPolicy and must permit targets of type ElementType.TYPE, ElementType.METHOD, or ElementType.FIELD (but no others). It should not be Inherited.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional indication of a type to which the resolved instance must be assignable.
  • Element Details

    • type

      Class<?> type
      Optional indication of a type to which the resolved instance must be assignable.
      Returns:
      the type of instance
      Default:
      java.lang.Object.class