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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<SupportingConstructorFragment>fragmentsprivate java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description NoArgumentConstructor(java.lang.String name, java.util.Set<SupportingConstructorFragment> fragments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<SupportingConstructorFragment>getFragments()java.util.Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.java.lang.StringgetName()-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Field Detail
-
name
private final java.lang.String name
-
fragments
private final java.util.Set<SupportingConstructorFragment> fragments
-
-
Constructor Detail
-
NoArgumentConstructor
public NoArgumentConstructor(java.lang.String name, java.util.Set<SupportingConstructorFragment> fragments)
-
-
Method Detail
-
getImportTypes
public java.util.Set<Type> 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
public java.lang.String getName()
- Specified by:
getNamein interfaceConstructor
-
getFragments
public java.util.Set<SupportingConstructorFragment> getFragments()
-
-