Interface TypeInfoCreatorProvider


public interface TypeInfoCreatorProvider
Java ServiceLoader provider interface used to discover type info creators.

Used to create a TypeInfo from the provided arguments.

  • Method Details

    • createTypeInfo

      Optional<TypeInfo> createTypeInfo(AnnotationAndValue annotation, TypeName typeName, TypeElement element, ProcessingEnvironment processingEnv)
      Creates a TypeInfo.
      Parameters:
      annotation - the annotation that triggered the creation
      typeName - the type name that is being processed that is annotated with the triggering annotation
      element - the element representative of the typeName
      processingEnv - the processing environment
      Returns:
      the type info associated with the arguments being processed, or empty if not able to process the type