Package org.mapstruct.ap.internal.model
Class GeneratedType
java.lang.Object
org.mapstruct.ap.internal.writer.FreeMarkerWritable
org.mapstruct.ap.internal.model.common.ModelElement
org.mapstruct.ap.internal.model.GeneratedType
- All Implemented Interfaces:
Writable
A type generated by MapStruct, e.g. representing a mapper type.
- Author:
- Gunnar Morling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeneratedType(TypeFactory typeFactory, String packageName, String name, Type mapperDefinitionType, List<MappingMethod> methods, List<Field> fields, Options options, VersionInformation versionInformation, boolean suppressGeneratorTimestamp, Accessibility accessibility, SortedSet<Type> extraImportedTypes, Constructor constructor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) protected voidaddIfImportRequired(Collection<Type> collection, Type typeToAdd) Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.getName()booleanbooleanbooleanbooleanvoidvoidsetConstructor(Constructor constructor) voidMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Constructor Details
-
GeneratedType
protected GeneratedType(TypeFactory typeFactory, String packageName, String name, Type mapperDefinitionType, List<MappingMethod> methods, List<Field> fields, Options options, VersionInformation versionInformation, boolean suppressGeneratorTimestamp, Accessibility accessibility, SortedSet<Type> extraImportedTypes, Constructor constructor)
-
-
Method Details
-
getPackageName
-
hasPackageName
public boolean hasPackageName() -
getName
-
getMapperDefinitionType
-
getAnnotations
-
addAnnotation
-
getMethods
-
getFields
-
setFields
-
isSuppressGeneratorTimestamp
public boolean isSuppressGeneratorTimestamp() -
isSuppressGeneratorVersionComment
public boolean isSuppressGeneratorVersionComment() -
isGeneratedTypeAvailable
public boolean isGeneratedTypeAvailable() -
getVersionInformation
-
getAccessibility
-
setConstructor
-
getImportTypes
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypesin classModelElement- Returns:
- A set with type referenced by this model element. Must not be
null.
-
getImportTypeNames
-
getConstructor
-
removeConstructor
public void removeConstructor() -
getJavadoc
-
addIfImportRequired
-