Class AptTypeFactory

java.lang.Object
io.helidon.codegen.apt.AptTypeFactory

@Deprecated(forRemoval=true, since="4.2.0") public final class AptTypeFactory extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
this is intended for internal use. This will be a package private type in the future.
Factory for types.
  • Method Details

    • createTypeName

      public static Optional<TypeName> createTypeName(DeclaredType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a name from a declared type during annotation processing.
      Parameters:
      type - the element type
      Returns:
      the associated type name instance
    • createTypeName

      public static Optional<TypeName> createTypeName(TypeMirror typeMirror)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create type from type mirror.
      Parameters:
      typeMirror - annotation processing type mirror
      Returns:
      type name
      Throws:
      IllegalArgumentException - when the mirror cannot be resolved into a name (such as when it represents none or error)
    • createTypeName

      public static Optional<TypeName> createTypeName(TypeElement element, TypeMirror mirror)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create type from type mirror. The element is needed to correctly map type arguments to type parameters.
      Parameters:
      element - the type element of the type mirror
      mirror - the type mirror as declared in source code
      Returns:
      type for the provided values
    • createTypeName

      public static Optional<TypeName> createTypeName(Element type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a name from an element type during annotation processing.
      Parameters:
      type - the element type
      Returns:
      the associated type name instance