Package org.mapstruct.ap.internal.model
Class DefaultMapperReference
java.lang.Object
org.mapstruct.ap.internal.writer.FreeMarkerWritable
org.mapstruct.ap.internal.model.common.ModelElement
org.mapstruct.ap.internal.model.Field
org.mapstruct.ap.internal.model.MapperReference
org.mapstruct.ap.internal.model.DefaultMapperReference
- All Implemented Interfaces:
Writable
Mapper reference which is retrieved via the
Mappers#getMapper() method. Used by default if no other component
model is specified via Mapper#uses().- Author:
- Gunnar Morling
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.static DefaultMapperReferencegetInstance(Type type, boolean isAnnotatedMapper, boolean isSingleton, TypeFactory typeFactory, List<String> otherMapperReferences) booleanbooleanMethods inherited from class org.mapstruct.ap.internal.model.MapperReference
findMapperReferenceMethods inherited from class org.mapstruct.ap.internal.model.Field
equals, getFieldNames, getType, getVariableName, hashCode, isTypeRequiresImport, isUsed, setTypeRequiresImport, setUsedMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Method Details
-
getInstance
public static DefaultMapperReference getInstance(Type type, boolean isAnnotatedMapper, boolean isSingleton, TypeFactory typeFactory, List<String> otherMapperReferences) -
getImportTypes
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Overrides:
getImportTypesin classField- Returns:
- A set with type referenced by this model element. Must not be
null.
-
isAnnotatedMapper
public boolean isAnnotatedMapper() -
isSingleton
public boolean isSingleton()
-