Package org.mapstruct.ap.internal.model
Class NoArgumentConstructor
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.NoArgumentConstructor
-
- All Implemented Interfaces:
Constructor
,Writable
public class NoArgumentConstructor extends ModelElement implements Constructor
Represents a constructor that is used for constructor injection.- Author:
- Sjaak Derksen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Constructor Summary
Constructors Constructor Description NoArgumentConstructor(String name, Set<SupportingConstructorFragment> fragments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
getName()
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Constructor Detail
-
NoArgumentConstructor
public NoArgumentConstructor(String name, Set<SupportingConstructorFragment> fragments)
-
-
Method Detail
-
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
-
getFragments
public Set<SupportingConstructorFragment> getFragments()
-
-