public class Parameter extends ModelElement
Writable.Context
getTemplateName, getTemplateNameForClass, write
public Element getElement()
public String getName()
public String getOriginalName()
public Type getType()
public boolean isMappingTarget()
public String describe()
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 boolean isTargetType()
public boolean isMappingContext()
public boolean isVarArgs()
public static Parameter forElementAndType(VariableElement element, Type parameterType, boolean isVarArgs)
public static List<Parameter> getSourceParameters(List<Parameter> parameters)
parameters
- the parameters to filterpublic static Parameter getSourceParameter(List<Parameter> parameters, String sourceParameterName)
parameters
- the parameters to scansourceParameterName
- the source parameter name to matchpublic static List<Parameter> getContextParameters(List<Parameter> parameters)
parameters
- the parameters to filterpublic static Parameter getMappingTargetParameter(List<Parameter> parameters)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.