public class DefaultMapperReference extends MapperReference
Mappers#getMapper()
method. Used by default if no other component
model is specified via Mapper#uses()
.Writable.Context
Modifier and Type | Method and Description |
---|---|
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
static DefaultMapperReference |
getInstance(Type type,
boolean isAnnotatedMapper,
TypeFactory typeFactory,
List<String> otherMapperReferences) |
boolean |
isAnnotatedMapper() |
findMapperReference
equals, getFieldNames, getType, getVariableName, hashCode, isTypeRequiresImport, isUsed, setTypeRequiresImport, setUsed
getTemplateName, getTemplateNameForClass, write
public static DefaultMapperReference getInstance(Type type, boolean isAnnotatedMapper, TypeFactory typeFactory, List<String> otherMapperReferences)
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class Field
null
.public boolean isAnnotatedMapper()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.