Interface GeneratedAnnotationProvider


public interface GeneratedAnnotationProvider
Service provider interface to provide customization of generated annotation.
  • Method Details

    • create

      Annotation create(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments)
      Create a generated annotation.
      Parameters:
      generator - type of the generator (annotation processor)
      trigger - type of the class that caused this type to be generated
      generatedType - type that is going to be generated
      versionId - version of the generator
      comments - additional comments, never use null (use empty string so they do not appear in annotation)
      Returns:
      a new annotation to add to the generated type