public class AnnotatedConstructor extends ModelElement implements Constructor
Writable.Context
Modifier and Type | Method and 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 those
Type s referenced by this model element for which an import statement needs
to be declared. |
List<AnnotationMapperReference> |
getMapperReferences() |
String |
getName() |
NoArgumentConstructor |
getNoArgumentConstructor() |
getTemplateName, getTemplateNameForClass, write
public static AnnotatedConstructor forComponentModels(String name, List<AnnotationMapperReference> mapperReferences, List<Annotation> annotations, Constructor constructor, boolean includeNoArgConstructor)
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in interface Constructor
getImportTypes
in class ModelElement
null
.public String getName()
getName
in interface Constructor
public List<AnnotationMapperReference> getMapperReferences()
public List<Annotation> getAnnotations()
public NoArgumentConstructor getNoArgumentConstructor()
public Set<SupportingConstructorFragment> getFragments()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.