Package org.mapstruct.ap.internal.model
Class AnnotatedConstructor
java.lang.Object
org.mapstruct.ap.internal.writer.FreeMarkerWritable
org.mapstruct.ap.internal.model.common.ModelElement
org.mapstruct.ap.internal.model.AnnotatedConstructor
- All Implemented Interfaces:
Constructor,Writable
Represents a constructor that is used for constructor injection.
- Author:
- Kevin Grüneberg
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotatedConstructorforComponentModels(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, Constructor constructor, boolean includeNoArgConstructor) Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.getName()Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Method Details
-
forComponentModels
public static AnnotatedConstructor forComponentModels(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, Constructor constructor, boolean includeNoArgConstructor) -
getImportTypes
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypesin interfaceConstructor- Specified by:
getImportTypesin classModelElement- Returns:
- A set with type referenced by this model element. Must not be
null.
-
getName
- Specified by:
getNamein interfaceConstructor
-
getMapperReferences
-
getAnnotations
-
getNoArgumentConstructor
-
getFragments
-