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
public class AnnotatedConstructor extends ModelElement implements Constructor
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotatedConstructor
forComponentModels(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, Constructor constructor, boolean includeNoArgConstructor)
List<Annotation>
getAnnotations()
Set<SupportingConstructorFragment>
getFragments()
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.List<AnnotationMapperReference>
getMapperReferences()
String
getName()
NoArgumentConstructor
getNoArgumentConstructor()
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Method Detail
-
forComponentModels
public static AnnotatedConstructor forComponentModels(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, Constructor constructor, boolean includeNoArgConstructor)
-
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.- Specified by:
getImportTypes
in interfaceConstructor
- Specified by:
getImportTypes
in classModelElement
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
getName
public String getName()
- Specified by:
getName
in interfaceConstructor
-
getMapperReferences
public List<AnnotationMapperReference> getMapperReferences()
-
getAnnotations
public List<Annotation> getAnnotations()
-
getNoArgumentConstructor
public NoArgumentConstructor getNoArgumentConstructor()
-
getFragments
public Set<SupportingConstructorFragment> getFragments()
-
-