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 Detail

      • AnnotationMapperReference

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

      • 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()