Package org.mapstruct.ap.internal.model
Class DecoratorConstructor
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.DecoratorConstructor
-
- All Implemented Interfaces:
Constructor,Writable
public class DecoratorConstructor extends ModelElement implements Constructor
Represents the constructor of a decorator.- Author:
- Gunnar Morling
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Constructor Summary
Constructors Constructor Description DecoratorConstructor(String name, String delegateName, boolean invokeSuperConstructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDelegateName()Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.StringgetName()booleanisInvokeSuperConstructor()-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Method Detail
-
getImportTypes
public 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 String getName()
- Specified by:
getNamein interfaceConstructor
-
getDelegateName
public String getDelegateName()
-
isInvokeSuperConstructor
public boolean isInvokeSuperConstructor()
-
-