Interface TypeInfoCreatorProvider

All Known Implementing Classes:
BuilderTypeTools, TypeTools

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(TypeName annoTypeName, TypeName typeName, TypeElement element, ProcessingEnvironment processingEnv, boolean wantDefaultMethods)
      Creates a TypeInfo.
      Parameters:
      annoTypeName - the annotation type name 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
      wantDefaultMethods - true to accept default methods (normally this is passed as false)
      Returns:
      the type info associated with the arguments being processed, or empty if not able to process the type