Class AnnotationMapperReference

  • All Implemented Interfaces:

    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.
    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.
        getImportTypes in class Field
        A set with type referenced by this model element. Must not be null.
      • isFieldFinal

        public boolean isFieldFinal()
      • isIncludeAnnotationsOnField

        public boolean isIncludeAnnotationsOnField()