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.
      type - type to check
      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.
      ctx - code generation context
      typeInfo - type info to map
      mapped type info, or empty optional to remove the type info