public class Mapper extends GeneratedType
@Mapper
). This is the root object of the
mapper model.Modifier and Type | Class and Description |
---|---|
static class |
Mapper.Builder |
GeneratedType.GeneratedTypeBuilder<T extends GeneratedType.GeneratedTypeBuilder>
Writable.Context
Modifier and Type | Method and Description |
---|---|
Decorator |
getDecorator() |
static String |
getFlatName(TypeElement element)
Returns the same as
Class.getName() but without the package declaration. |
protected String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
boolean |
hasCustomImplementation() |
void |
removeDecorator() |
addAnnotation, addIfImportRequired, getAccessibility, getAnnotations, getConstructor, getFields, getImportTypeNames, getImportTypes, getInterfaceName, getInterfacePackage, getMethods, getName, getPackageName, getSuperClassName, getVersionInformation, hasPackageName, isGeneratedTypeAvailable, isSuppressGeneratorTimestamp, isSuppressGeneratorVersionComment, removeConstructor, setConstructor, setFields
getTemplateNameForClass, write
public Decorator getDecorator()
public void removeDecorator()
public boolean hasCustomImplementation()
protected String getTemplateName()
FreeMarkerWritable
FreeMarkerWritable.getTemplateNameForClass(Class)
is called with getClass()
, but this can be customized by
overriding this method if required.getTemplateName
in class FreeMarkerWritable
null
.public static String getFlatName(TypeElement element)
Class.getName()
but without the package declaration.Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.