Class GeneratedAnnotationResolver

java.lang.Object
com.querydsl.codegen.GeneratedAnnotationResolver

public final class GeneratedAnnotationResolver extends Object
GeneratedAnnotationClassResolver provides class name resolving functionality for resolving the annotation type to be used on Serializers generated sources.
  • Method Details

    • resolve

      public static Class<? extends Annotation> resolve(@Nullable @Nullable String generatedAnnotationClass)
      Use the generatedAnnotationClass or use the JDK one.

      A null generatedAnnotationClass will resolve to the java @Generated annotation (can be of type javax.annotation.Generated or javax.annotation.processing.Generated depending on the java version.

      Parameters:
      generatedAnnotationClass - the fully qualified class name of the Single-Element Annotation (with String element) to use or null.
      Returns:
      the provided generatedAnnotationClass if not null or the one from java. Never null.
      See Also:
    • resolveDefault

      public static Class<? extends Annotation> resolveDefault()
      Resolve the java @Generated annotation (can be of type javax.annotation.Generated or javax.annotation.processing.Generated depending on the java version.
      Returns:
      the Generated annotation class from java. Never null.