public class SupportingConstructorFragment extends ModelElement
Writable.Context
Constructor and Description |
---|
SupportingConstructorFragment(SupportingMappingMethod definingMethod,
BuiltInConstructorFragment constructorFragment) |
Modifier and Type | Method and Description |
---|---|
static void |
addAllFragmentsIn(Set<SupportingMappingMethod> supportingMappingMethods,
Set<SupportingConstructorFragment> targets) |
boolean |
equals(Object obj) |
SupportingMappingMethod |
getDefiningMethod() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
int |
hashCode() |
getTemplateNameForClass, write
public SupportingConstructorFragment(SupportingMappingMethod definingMethod, BuiltInConstructorFragment constructorFragment)
public String getTemplateName()
FreeMarkerWritable
FreeMarkerWritable.getTemplateNameForClass(Class)
is called with getClass()
, but this can be customized by
overriding this method if required.getTemplateName
in class FreeMarkerWritable
null
.public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.public SupportingMappingMethod getDefiningMethod()
public static void addAllFragmentsIn(Set<SupportingMappingMethod> supportingMappingMethods, Set<SupportingConstructorFragment> targets)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.