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
public class DefaultMapperReference extends MapperReference
Mapper reference which is retrieved via theMappers#getMapper()
method. Used by default if no other component model is specified viaMapper#uses()
.- Author:
- Gunnar Morling
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.static DefaultMapperReference
getInstance(Type type, boolean isAnnotatedMapper, boolean isSingleton, TypeFactory typeFactory, List<String> otherMapperReferences)
boolean
isAnnotatedMapper()
boolean
isSingleton()
-
Methods inherited from class org.mapstruct.ap.internal.model.MapperReference
findMapperReference
-
Methods inherited from class org.mapstruct.ap.internal.model.Field
equals, getFieldNames, getType, getVariableName, hashCode, isTypeRequiresImport, isUsed, setTypeRequiresImport, setUsed
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Method Detail
-
getInstance
public static DefaultMapperReference getInstance(Type type, boolean isAnnotatedMapper, boolean isSingleton, TypeFactory typeFactory, List<String> otherMapperReferences)
-
getImportTypes
public Set<Type> getImportTypes()
Description copied from class:ModelElement
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.- Overrides:
getImportTypes
in classField
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
isAnnotatedMapper
public boolean isAnnotatedMapper()
-
isSingleton
public boolean isSingleton()
-
-