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.
    • Field Detail

      • annotations

        private final java.util.List<Annotation> annotations
      • fieldFinal

        private final boolean fieldFinal
      • includeAnnotationsOnField

        private final boolean includeAnnotationsOnField
    • Constructor Detail

      • AnnotationMapperReference

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

      • getAnnotations

        public java.util.List<Annotation> getAnnotations()
      • getImportTypes

        public java.util.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()