public class AnnotationMapperReference extends MapperReference
Writable.Context
Constructor and Description |
---|
AnnotationMapperReference(Type type,
String variableName,
List<Annotation> annotations,
boolean isUsed,
boolean fieldFinal,
boolean includeAnnotationsOnField) |
Modifier and Type | Method and Description |
---|---|
List<Annotation> |
getAnnotations() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
boolean |
isFieldFinal() |
boolean |
isIncludeAnnotationsOnField() |
AnnotationMapperReference |
withNewAnnotations(List<Annotation> annotations) |
findMapperReference
equals, getFieldNames, getType, getVariableName, hashCode, isTypeRequiresImport, isUsed, setTypeRequiresImport, setUsed
getTemplateName, getTemplateNameForClass, write
public AnnotationMapperReference(Type type, String variableName, List<Annotation> annotations, boolean isUsed, boolean fieldFinal, boolean includeAnnotationsOnField)
public List<Annotation> getAnnotations()
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class Field
null
.public boolean isFieldFinal()
public boolean isIncludeAnnotationsOnField()
public AnnotationMapperReference withNewAnnotations(List<Annotation> annotations)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.