Class AnnotationMapperReference

All Implemented Interfaces:
Writable

public class AnnotationMapperReference extends MapperReference
Mapper reference which is retrieved via Annotation-based dependency injection.
The dependency injection may vary between field and constructor injection. Thus, it is possible to define, whether to include annotations on the field.
Author:
Gunnar Morling, Andreas Gudian, Kevin Grüneberg
  • Constructor Details

    • AnnotationMapperReference

      public AnnotationMapperReference(Type type, String variableName, List<Annotation> annotations, boolean isUsed, boolean fieldFinal, boolean includeAnnotationsOnField)
  • Method Details

    • getAnnotations

      public List<Annotation> getAnnotations()
    • getImportTypes

      public Set<Type> getImportTypes()
      Description copied from class: ModelElement
      Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
      Overrides:
      getImportTypes in class Field
      Returns:
      A set with type referenced by this model element. Must not be null.
    • isFieldFinal

      public boolean isFieldFinal()
    • isIncludeAnnotationsOnField

      public boolean isIncludeAnnotationsOnField()
    • withNewAnnotations

      public AnnotationMapperReference withNewAnnotations(List<Annotation> annotations)