Class Mapper

All Implemented Interfaces:
Writable

public class Mapper extends GeneratedType
Represents a type implementing a mapper interface (annotated with @Mapper). This is the root object of the mapper model.
Author:
Gunnar Morling
  • Method Details

    • getDecorator

      public Decorator getDecorator()
    • removeDecorator

      public void removeDecorator()
    • hasCustomImplementation

      public boolean hasCustomImplementation()
    • getJavadoc

      public Javadoc getJavadoc()
      Overrides:
      getJavadoc in class GeneratedType
    • getTemplateName

      protected String getTemplateName()
      Description copied from class: FreeMarkerWritable
      Returns the name of the template to be used for a specific writable type. By default, FreeMarkerWritable.getTemplateNameForClass(Class) is called with getClass(), but this can be customized by overriding this method if required.
      Overrides:
      getTemplateName in class FreeMarkerWritable
      Returns:
      the name of the template. Must not be null.
    • getFlatName

      public static String getFlatName(TypeElement element)
      Returns the same as Class.getName() but without the package declaration.
      Parameters:
      element - the element that should be flattened
      Returns:
      the flat name for the type element