Class GeneratedType

All Implemented Interfaces:
Writable
Direct Known Subclasses:
Decorator, Mapper

public abstract class GeneratedType extends ModelElement
A type generated by MapStruct, e.g. representing a mapper type.
Author:
Gunnar Morling
  • Constructor Details

  • Method Details

    • getPackageName

      public String getPackageName()
    • hasPackageName

      public boolean hasPackageName()
    • getName

      public String getName()
    • getMapperDefinitionType

      public Type getMapperDefinitionType()
    • getAnnotations

      public List<Annotation> getAnnotations()
    • addAnnotation

      public void addAnnotation(Annotation annotation)
    • getMethods

      public List<GeneratedTypeMethod> getMethods()
    • getFields

      public List<Field> getFields()
    • setFields

      public void setFields(List<Field> fields)
    • isSuppressGeneratorTimestamp

      public boolean isSuppressGeneratorTimestamp()
    • isSuppressGeneratorVersionComment

      public boolean isSuppressGeneratorVersionComment()
    • isGeneratedTypeAvailable

      public boolean isGeneratedTypeAvailable()
    • getVersionInformation

      public VersionInformation getVersionInformation()
    • getAccessibility

      public Accessibility getAccessibility()
    • setConstructor

      public void setConstructor(Constructor constructor)
    • getImportTypes

      public SortedSet<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.
      Specified by:
      getImportTypes in class ModelElement
      Returns:
      A set with type referenced by this model element. Must not be null.
    • getImportTypeNames

      public SortedSet<String> getImportTypeNames()
    • getConstructor

      public Constructor getConstructor()
    • removeConstructor

      public void removeConstructor()
    • getJavadoc

      public Javadoc getJavadoc()
    • addIfImportRequired

      protected void addIfImportRequired(Collection<Type> collection, Type typeToAdd)