Class GeneratedAnnotationHandler

java.lang.Object
io.helidon.common.processor.GeneratedAnnotationHandler

public final class GeneratedAnnotationHandler extends Object
Support for generated annotation.
  • Method Details

    • create

      public static 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
    • createString

      public static String createString(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments)
      Create a generated annotation string, using fully qualified annotation type.
      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