Interface TypeMapper


public interface TypeMapper
Maps TypeInfo to another TypeInfo. This mapper can be used to handle complex changes to a definition of a type, such as combining multiple annotations into a single one.
  • Method Details

    • supportsType

      boolean supportsType(TypeInfo type)
      Check if the type is supported.
      Parameters:
      type - type to check
      Returns:
      true if this mapper is interested in the element
    • map

      Optional<TypeInfo> map(CodegenContext ctx, TypeInfo typeInfo)
      Map the original type to a different type, or remove it from processing.
      Parameters:
      ctx - code generation context
      typeInfo - type info to map
      Returns:
      mapped type info, or empty optional to remove the type info