Java - Annotation Meta Annotation

Introduction

Meta-annotations types are annotations to annotate other annotation types.

Meta-annotation types are part of the Java class library.

They are declared in the package java.lang.annotation.

The following annotation types are meta-annotation types:

  • Target
  • Retention
  • Inherited
  • Documented
  • Repeatable
  • Native