
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
Types 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, writepublic SupportingConstructorFragment(SupportingMappingMethod definingMethod, BuiltInConstructorFragment constructorFragment)
public String getTemplateName()
FreeMarkerWritableFreeMarkerWritable.getTemplateNameForClass(Class) is called with getClass(), but this can be customized by
overriding this method if required.getTemplateName in class FreeMarkerWritablenull.public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class ModelElementnull.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.