Uses of Class
org.mapstruct.ap.internal.model.common.Type
Packages that use Type
Package
Description
Provides built-in conversions between primitive and wrapper types, strings, dates etc.
Meta-model of mapper types, their methods, mappings between properties etc.
Meta-model of assignments.
helper classes used in
BeanMappingMethod
Contains types which are shared between the intermediary mapping method model ("source model") and the mapper model.
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
Contains "built-in methods" which may be added as private methods to a generated mapper.
Provides strategies for selecting a matching mapping or factory method when mapping from one attribute to another
or instantiating the target type of a mapping method, respectively.
Contains all helper classes for the
MapperCreationProcessor-
Uses of Type in org.mapstruct.ap.internal.conversion
Methods in org.mapstruct.ap.internal.conversion that return TypeMethods in org.mapstruct.ap.internal.conversion that return types with arguments of type TypeModifier and TypeMethodDescriptionAbstractNumberToStringConversion.getFromConversionExceptionTypes(ConversionContext conversionContext) SimpleConversion.getFromConversionExceptionTypes(ConversionContext conversionContext) URLToStringConversion.getFromConversionExceptionTypes(ConversionContext conversionContext) AbstractJavaTimeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) AbstractJodaTypeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) AbstractNumberToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigDecimalToBigIntegerConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigDecimalToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigDecimalToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigDecimalToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigIntegerToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigIntegerToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) BigIntegerToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) CurrencyToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) EnumStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) EnumToIntegerConversion.getFromConversionImportTypes(ConversionContext conversionContext) JavaLocalDateTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) JavaLocalDateToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) JavaLocalDateToSqlDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) JavaZonedDateTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) JodaDateTimeToCalendarConversion.getFromConversionImportTypes(ConversionContext conversionContext) JodaTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) LocaleToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) PrimitiveToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) SimpleConversion.getFromConversionImportTypes(ConversionContext conversionContext) Returns a set with imported types of the "from" conversion.StaticParseToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) URLToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) UUIDToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) WrapperToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) CreateDecimalFormat.getImportTypes()SimpleConversion.getToConversionExceptionTypes(ConversionContext conversionContext) AbstractJavaTimeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) AbstractJodaTypeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) AbstractNumberToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) DateToSqlDateConversion.getToConversionImportTypes(ConversionContext conversionContext) DateToSqlTimeConversion.getToConversionImportTypes(ConversionContext conversionContext) DateToSqlTimestampConversion.getToConversionImportTypes(ConversionContext conversionContext) JavaInstantToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) JavaLocalDateTimeToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) JavaLocalDateToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) JavaLocalDateToSqlDateConversion.getToConversionImportTypes(ConversionContext conversionContext) JavaZonedDateTimeToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) JodaDateTimeToCalendarConversion.getToConversionImportTypes(ConversionContext conversionContext) PrimitiveToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) SimpleConversion.getToConversionImportTypes(ConversionContext conversionContext) Returns a set with imported types of the "to" conversion.TypeToOptionalConversion.getToConversionImportTypes(ConversionContext conversionContext) WrapperToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) Methods in org.mapstruct.ap.internal.conversion with parameters of type Type -
Uses of Type in org.mapstruct.ap.internal.model
Fields in org.mapstruct.ap.internal.model declared as TypeModifier and TypeFieldDescriptionprotected TypePropertyMapping.MappingBuilderBase.targetTypeprotected TypePropertyMapping.MappingBuilderBase.targetTypeprotected TypePropertyMapping.MappingBuilderBase.targetTypeFields in org.mapstruct.ap.internal.model with type parameters of type TypeMethods in org.mapstruct.ap.internal.model that return TypeModifier and TypeMethodDescriptionFinds aTypeby a given name.ForgedMethod.getDeclaringMapper()final TypeHelperMethod.getDeclaringMapper()Returns the mapper type declaring this method if it is not declared by the mapper interface currently processed but by another mapper imported viaMapper#users().LifecycleCallbackMethodReference.getDeclaringType()ForgedMethod.getDefiningType()HelperMethod.getDefiningType()MethodReference.getDefiningType()protected abstract TypeContainerMappingMethodBuilder.getElementType(Type parameterType) protected TypeIterableMappingMethod.Builder.getElementType(Type parameterType) protected TypeStreamMappingMethod.Builder.getElementType(Type parameterType) IterableCreation.getEnumSetElementType()BeanMappingMethod.getFinalizedReturnType()GeneratedType.getMapperDefinitionType()Decorator.getMapperType()LifecycleCallbackMethodReference.getMethodResultType()Returns the result type of the mapping method in which this callback method is calledLifecycleCallbackMethodReference.getMethodReturnType()Returns the return type of the mapping method in which this callback method is calledabstract TypeContainerMappingMethod.getResultElementType()IterableMappingMethod.getResultElementType()StreamMappingMethod.getResultElementType()ForgedMethod.getResultType()HelperMethod.getResultType()IterableCreation.getResultType()MappingMethod.getResultType()ForgedMethod.getReturnType()MappingMethod.getReturnType()MethodReference.getReturnType()BeanMappingMethod.getReturnTypeToConstruct()MethodReference.getSingleSourceParameterType()IterableMappingMethod.getSourceElementType()StreamMappingMethod.getSourceElementType()ForgedMethodHistory.getSourceType()FromOptionalTypeConversion.getSourceType()MethodReference.getSourceType()SubclassMapping.getSourceType()ToOptionalTypeConversion.getSourceType()TypeConversion.getSourceType()BeanMappingMethod.getSubclassExhaustiveException()ForgedMethodHistory.getTargetType()PropertyMapping.getTargetType()ToOptionalTypeConversion.getTargetType()AnnotatedSetter.getType()Annotation.getType()Field.getType()Returns the type of this field.NestedPropertyMappingMethod.SafePropertyEntry.getType()ValueMappingMethod.getUnexpectedValueMappingException()MethodReference.inferTypeWhenEnum(Type type) Methods in org.mapstruct.ap.internal.model that return types with arguments of type TypeModifier and TypeMethodDescriptionAnnotatedConstructor.getImportTypes()AnnotatedSetter.getImportTypes()Annotation.getImportTypes()AnnotationMapperReference.getImportTypes()BeanMappingMethod.getImportTypes()Constructor.getImportTypes()ContainerMappingMethod.getImportTypes()Decorator.getImportTypes()DecoratorConstructor.getImportTypes()DefaultMapperReference.getImportTypes()Field.getImportTypes()FromOptionalTypeConversion.getImportTypes()GeneratedType.getImportTypes()HelperMethod.getImportTypes()Returns the types used by this method for which import statements need to be generated.IterableCreation.getImportTypes()IterableMappingMethod.getImportTypes()Javadoc.getImportTypes()LifecycleCallbackMethodReference.getImportTypes()MapMappingMethod.getImportTypes()MappingMethod.getImportTypes()MethodReference.getImportTypes()MethodReferencePresenceCheck.getImportTypes()NestedPropertyMappingMethod.getImportTypes()NoArgumentConstructor.getImportTypes()NormalTypeMappingMethod.getImportTypes()PropertyMapping.getImportTypes()ServicesEntry.getImportTypes()StreamMappingMethod.getImportTypes()SubclassMapping.getImportTypes()SupportingConstructorFragment.getImportTypes()SupportingMappingMethod.getImportTypes()ToOptionalTypeConversion.getImportTypes()TypeConversion.getImportTypes()ValueMappingMethod.getImportTypes()MapMappingMethod.getResultElementTypes()MapMappingMethod.getSourceElementTypes()ForgedMethod.getThrownTypes()FromOptionalTypeConversion.getThrownTypes()HelperMethod.getThrownTypes()MappingMethod.getThrownTypes()MethodReference.getThrownTypes()ToOptionalTypeConversion.getThrownTypes()TypeConversion.getThrownTypes()ForgedMethod.getTypeParameters()HelperMethod.getTypeParameters()Methods in org.mapstruct.ap.internal.model with parameters of type TypeModifier and TypeMethodDescriptionprotected voidGeneratedType.addIfImportRequired(Collection<Type> collection, Type typeToAdd) static List<LifecycleCallbackMethodReference> LifecycleMethodResolver.afterMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames, Supplier<List<ParameterBinding>> parameterBindingsProvider) static List<LifecycleCallbackMethodReference> LifecycleMethodResolver.beforeMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames) booleanMappingBuilderContext.canGenerateAutoSubMappingBetween(Type sourceType, Type targetType) booleanHelperMethod.doTypeVarsMatch(Type parameter, Type returnType) Analyzes the Java Generic type variables in the parameter do match the type variables in the build in method same goes for the returnType.static MethodReferenceMethodReference.forConstructorInvocation(Type type, List<ParameterBinding> parameterBindings) static ForgedMethodForgedMethod.forElementMapping(String name, Type sourceType, Type returnType, Method basedOn, ForgedMethodHistory history, boolean forgedNameBased) Creates a new forged method for mapping a collection element, map key/value or stream elementstatic ForgedMethodForgedMethod.forParameterMapping(String name, Type sourceType, Type returnType, Method basedOn) Creates a new forged method with the given name for mapping a method parameter to a property.static ForgedMethodForgedMethod.forPropertyMapping(String name, Type sourceType, Type returnType, List<Parameter> parameters, Method basedOn, ForgedMethodHistory history, MappingReferences mappingReferences, boolean forgedNameBased) Creates a new forged method for mapping a bean property to a propertystatic MethodReferenceMethodReference.forStaticBuilder(String builderCreationMethod, Type definingType) static ForgedMethodForgedMethod.forSubclassMapping(String name, Type sourceType, Type returnType, Method basedOn, MappingReferences mappingReferences, ForgedMethodHistory history, boolean forgedNameBased) Creates a new forged method for mapping a SubclassMapping elementstatic MethodReferenceObjectFactoryMethodResolver.getBuilderFactoryMethod(Type typeToBuild, BuilderType builder) protected abstract TypeContainerMappingMethodBuilder.getElementType(Type parameterType) protected TypeIterableMappingMethod.Builder.getElementType(Type parameterType) protected TypeStreamMappingMethod.Builder.getElementType(Type parameterType) static MethodReferenceObjectFactoryMethodResolver.getFactoryMethod(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx) returns a no arg factory methodstatic DefaultMapperReferenceDefaultMapperReference.getInstance(Type type, boolean isAnnotatedMapper, boolean isSingleton, TypeFactory typeFactory, List<String> otherMapperReferences) static List<SelectedMethod<SourceMethod>> ObjectFactoryMethodResolver.getMatchingFactoryMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx) MappingBuilderContext.MappingResolver.getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger) returns a parameter assignmentMethodReference.inferTypeWhenEnum(Type type) booleanbooleanChecks whether the provided sourceType and provided targetType match with the parameter respectively return type of the method.NestedTargetPropertyMappingHolder.Builder.targetPropertyType(Type targetType) CollectionAssignmentBuilder.targetType(Type targetType) Method parameters in org.mapstruct.ap.internal.model with type arguments of type TypeModifier and TypeMethodDescriptionprotected voidGeneratedType.addIfImportRequired(Collection<Type> collection, Type typeToAdd) voidForgedMethod.addThrownTypes(List<Type> thrownTypesToAdd) GeneratedType.GeneratedTypeBuilder.extraImports(SortedSet<Type> extraImportedTypes) booleanbooleanChecks whether the provided sourceType and provided targetType match with the parameter respectively return type of the method.Constructors in org.mapstruct.ap.internal.model with parameters of type TypeModifierConstructorDescriptionAnnotation(Type type) Annotation(Type type, List<AnnotationElement> properties) AnnotationMapperReference(Type type, String variableName, List<Annotation> annotations, boolean isUsed, boolean fieldFinal, boolean includeAnnotationsOnField) ForgedMethodHistory(ForgedMethodHistory history, String sourceElement, String targetPropertyName, Type sourceType, Type targetType, boolean usePropertyNames, String elementType) FromOptionalTypeConversion(Type optionalType, Assignment conversionAssignment) protectedGeneratedType(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) MapperReference(Type type, String variableName) MapperReference(Type type, String variableName, boolean isUsed) SafePropertyEntry(Type type, String safeName, String source, PresenceCheck presenceCheck) SubclassMapping(Type sourceType, String sourceArgument, Type targetType, Assignment assignment) ToOptionalTypeConversion(Type targetType, Assignment conversionAssignment) Constructor parameters in org.mapstruct.ap.internal.model with type arguments of type TypeModifierConstructorDescriptionprotectedGeneratedType(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) -
Uses of Type in org.mapstruct.ap.internal.model.annotation
Methods in org.mapstruct.ap.internal.model.annotation that return TypeMethods in org.mapstruct.ap.internal.model.annotation that return types with arguments of type TypeModifier and TypeMethodDescriptionAnnotationElement.getImportTypes()EnumAnnotationElementHolder.getImportTypes()Constructors in org.mapstruct.ap.internal.model.annotation with parameters of type Type -
Uses of Type in org.mapstruct.ap.internal.model.assignment
Methods in org.mapstruct.ap.internal.model.assignment that return TypeModifier and TypeMethodDescriptionAdderWrapper.getAdderType()StreamAdderWrapper.getAdderType()WrapperForCollectionsAndMaps.getNullCheckLocalVarType()OptionalGetWrapper.getOptionalType()AssignmentWrapper.getSourceType()Methods in org.mapstruct.ap.internal.model.assignment that return types with arguments of type TypeModifier and TypeMethodDescriptionAdderWrapper.getImportTypes()ArrayCopyWrapper.getImportTypes()AssignmentWrapper.getImportTypes()EnumConstantWrapper.getImportTypes()ExistingInstanceSetterWrapperForCollectionsAndMaps.getImportTypes()GetterWrapperForCollectionsAndMaps.getImportTypes()Java8FunctionWrapper.getImportTypes()LocalVarWrapper.getImportTypes()SetterWrapperForCollectionsAndMapsWithNullCheck.getImportTypes()StreamAdderWrapper.getImportTypes()UpdateWrapper.getImportTypes()AdderWrapper.getThrownTypes()AssignmentWrapper.getThrownTypes()LocalVarWrapper.getThrownTypes()SetterWrapper.getThrownTypes()StreamAdderWrapper.getThrownTypes()UpdateWrapper.getThrownTypes()WrapperForCollectionsAndMaps.getThrownTypes()Constructors in org.mapstruct.ap.internal.model.assignment with parameters of type TypeModifierConstructorDescriptionArrayCopyWrapper(Assignment rhs, String targetPropertyName, Type arraysType, Type targetType, boolean fieldAssignment, boolean setExplicitlyToNull, boolean setExplicitlyToDefault) EnumConstantWrapper(Assignment decoratedAssignment, Type enumType) ExistingInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs, org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms, TypeFactory typeFactory, boolean fieldAssignment) GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms, boolean fieldAssignment) Java8FunctionWrapper(Assignment decoratedAssignment, Type functionType) LocalVarWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) NewInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment) OptionalGetWrapper(Assignment decoratedAssignment, Type optionalType) SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) SetterWrapperForCollectionsAndMapsWithNullCheck(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment) UpdateWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Assignment factoryMethod, boolean fieldAssignment, Type targetType, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault) WrapperForCollectionsAndMaps(Assignment rhs, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) Constructor parameters in org.mapstruct.ap.internal.model.assignment with type arguments of type TypeModifierConstructorDescriptionAdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String adderIteratorName) ExistingInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs, org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms, TypeFactory typeFactory, boolean fieldAssignment) GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms, boolean fieldAssignment) LocalVarWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) NewInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment) SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment) SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault) SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) SetterWrapperForCollectionsAndMapsWithNullCheck(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment) StreamAdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String targetPropertyName) UpdateWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Assignment factoryMethod, boolean fieldAssignment, Type targetType, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault) WrapperForCollectionsAndMaps(Assignment rhs, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) -
Uses of Type in org.mapstruct.ap.internal.model.beanmapping
Methods in org.mapstruct.ap.internal.model.beanmapping that return TypeMethods in org.mapstruct.ap.internal.model.beanmapping with parameters of type TypeModifier and TypeMethodDescriptionstatic MappingReferencesMappingReferences.forSourceMethod(SourceMethod sourceMethod, Type targetType, Set<String> targetProperties, FormattingMessager messager, TypeFactory typeFactory) static PropertyEntryPropertyEntry.forSourceReference(String[] name, ReadAccessor readAccessor, PresenceCheckAccessor presenceChecker, Type type) Constructor used to createSourceReferenceproperty entries from a mappingTargetReference.Builder.targetType(Type targetType) -
Uses of Type in org.mapstruct.ap.internal.model.common
Methods in org.mapstruct.ap.internal.model.common that return TypeModifier and TypeMethodDescriptionType.asRawType()removes any bounds from this type.TypeFactory.classTypeOf(Type type) Returns the Type that represents the declared Class type of the given type.TypeFactory.createVoidType()creates a void return typeTypeFactory.effectiveResultTypeFor(Type type, org.mapstruct.ap.internal.gem.BuilderGem builder) Type.erasure()TypeFactory.getAlwaysImportedType(TypeMirror mirror) Return a type that is always going to be imported.Type.getBoxedEquivalent()Gets the boxed equivalent type if the type is primitive, int will return IntegerBuilderType.getBuilder()The type of the builder itself.BuilderType.getBuildingType()The type that is being built by the builder.Type.getComponentType()Type.getImplementationType()Returns the implementation type to be instantiated in case this type is an interface iterable, collection or map type.Type.ResolvedPair.getMatch()Type.getOptionalBaseType()BuilderType.getOwningType()The owning type of the builder, this can be the builder itself, the type that is build by the builder or some other type.Type.ResolvedPair.getParameter()TypeFactory.getReturnType(DeclaredType includingType, Accessor accessor) TypeFactory.getReturnType(ExecutableType method) Assignment.getSourceType()the source type used in the matching processConversionContext.getSourceType()Returns the source type of this conversion.DefaultConversionContext.getSourceType()SourceRHS.getSourceType()SourceRHS.getSourceTypeForMatching()The source type that is to be used when resolving the mapping from source to target.ConversionContext.getTargetType()Returns the target type of this conversion.DefaultConversionContext.getTargetType()FieldReference.getType()FinalField.getType()ImplementationType.getType()Parameter.getType()ParameterBinding.getType()TypeFactory.getType(TypeElement typeElement) TypeFactory.getType(TypeMirror mirror) Type.getTypeBound()Establishes the type bound:<? extends Number>, returns Number<? super Number>, returns Number<?>, returns Object<T extends Number>, returns NumberTypeFactory.getTypeForLiteral(Class<?> type) TypeFactory.getWrappedType(Type type) Type.resolveGenericTypeParameters(Type declared, Type parameterized) Resolves generic types using the declared and parameterized types as input.
For example:Type.withoutBounds()Methods in org.mapstruct.ap.internal.model.common that return types with arguments of type TypeModifier and TypeMethodDescriptionType.determineTypeArguments(Class<?> superclass) Searches for the given superclass and collects all type arguments for the given classType.getDirectSuperTypes()Returns the direct supertypes of a type.Assignment.getImportTypes()returns all types required as import by the assignment statement.ModelElement.getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.NegatePresenceCheck.getImportTypes()Parameter.getImportTypes()ParameterBinding.getImportTypes()PresenceCheck.getImportTypes()returns all types required as import by the presence check.SourceRHS.getImportTypes()Type.getImportTypes()Assignment.getThrownTypes()returns all types exception types thrown by this assignment.SourceRHS.getThrownTypes()TypeFactory.getThrownTypes(ExecutableType method) TypeFactory.getThrownTypes(Accessor accessor) Type.getTypeBounds()Type.getTypeParameters()Methods in org.mapstruct.ap.internal.model.common with parameters of type TypeModifier and TypeMethodDescriptionTypeFactory.builderTypeFor(Type type, org.mapstruct.ap.internal.gem.BuilderGem builder) booleanType.canAccess(Type type, ExecutableElement method) TypeFactory.classTypeOf(Type type) Returns the Type that represents the declared Class type of the given type.intstatic BuilderTypeBuilderType.create(BuilderInfo builderInfo, Type typeToBuild, TypeFactory typeFactory, TypeUtils typeUtils) Creates newImplementationTypethat has the sameImplementationType.initialCapacityConstructorandImplementationType.loadFactorAdjustment, but a different underlyingTypeintType.distanceTo(Type assignableOther) Returns the length of the shortest path in the type hierarchy between this type and the specified other type.TypeFactory.effectiveResultTypeFor(Type type, org.mapstruct.ap.internal.gem.BuilderGem builder) static ParameterParameter.forElementAndType(VariableElement element, Type parameterType, boolean isVarArgs) static ParameterParameter.forForgedMappingTarget(Type parameterType) static ParameterBindingParameterBinding.forMappingTargetBinding(Type resultType) static ParameterBindingParameterBinding.forSourcePropertyNameBinding(Type classTypeOf) static ParameterBindingParameterBinding.forSourceTypeBinding(Type sourceType) static ParameterBindingParameterBinding.forTargetPropertyNameBinding(Type classTypeOf) static ParameterBindingParameterBinding.forTargetTypeBinding(Type classTypeOf) static ParameterBindingParameterBinding.fromTypeAndName(Type parameterType, String parameterName) TypeFactory.getWrappedType(Type type) booleanType.isAssignableTo(Type other) Whether this type is assignable to the given other type, considering the "extends / upper bounds" as well.booleanType.isRawAssignableTo(Type other) Whether this type is raw assignable to the given other type.Type.resolveGenericTypeParameters(Type declared, Type parameterized) Resolves generic types using the declared and parameterized types as input.
For example:Type.resolveParameterToType(Type declared, Type parameterized) Steps through the declaredType in order to find a match for this typeVar Type.static ImplementationTypeImplementationType.withDefaultConstructor(Type type) static ImplementationTypeImplementationType.withFactoryMethod(Type type, String factoryMethodName) static ImplementationTypeImplementationType.withInitialCapacity(Type type) static ImplementationTypeImplementationType.withLoadFactorAdjustment(Type type) Constructors in org.mapstruct.ap.internal.model.common with parameters of type TypeModifierConstructorDescriptionDefaultConversionContext(TypeFactory typeFactory, FormattingMessager messager, Type sourceType, Type targetType, FormattingParameters formattingParameters) FinalField(Type type, String variableName) ResolvedPair(Type parameter, Type match) SourceRHS(String sourceParameterName, String sourceReference, PresenceCheck sourcePresenceCheckerReference, Type sourceType, Set<String> existingVariableNames, String sourceErrorMessagePart) SourceRHS(String sourceReference, Type sourceType, Set<String> existingVariableNames, String sourceErrorMessagePart) Type(TypeUtils typeUtils, ElementUtils elementUtils, TypeFactory typeFactory, AccessorNamingUtils accessorNaming, TypeMirror typeMirror, TypeElement typeElement, List<Type> typeParameters, ImplementationType implementationType, Type componentType, String packageName, String name, String qualifiedName, boolean isInterface, boolean isEnumType, boolean isIterableType, boolean isCollectionType, boolean isMapType, boolean isStreamType, Map<String, String> toBeImportedTypes, Map<String, String> notToBeImportedTypes, Boolean isToBeImported, boolean isLiteral, boolean loggingVerbose) Constructor parameters in org.mapstruct.ap.internal.model.common with type arguments of type TypeModifierConstructorDescriptionType(TypeUtils typeUtils, ElementUtils elementUtils, TypeFactory typeFactory, AccessorNamingUtils accessorNaming, TypeMirror typeMirror, TypeElement typeElement, List<Type> typeParameters, ImplementationType implementationType, Type componentType, String packageName, String name, String qualifiedName, boolean isInterface, boolean isEnumType, boolean isIterableType, boolean isCollectionType, boolean isMapType, boolean isStreamType, Map<String, String> toBeImportedTypes, Map<String, String> notToBeImportedTypes, Boolean isToBeImported, boolean isLiteral, boolean loggingVerbose) -
Uses of Type in org.mapstruct.ap.internal.model.presence
Methods in org.mapstruct.ap.internal.model.presence that return types with arguments of type TypeModifier and TypeMethodDescriptionAllPresenceChecksPresenceCheck.getImportTypes()AnyPresenceChecksPresenceCheck.getImportTypes()JavaExpressionPresenceCheck.getImportTypes()NullPresenceCheck.getImportTypes()OptionalPresenceCheck.getImportTypes()SuffixPresenceCheck.getImportTypes() -
Uses of Type in org.mapstruct.ap.internal.model.source
Methods in org.mapstruct.ap.internal.model.source that return TypeModifier and TypeMethodDescriptionMethod.getDeclaringMapper()Returns the mapper type declaring this method if it is not declared by the mapper interface currently processed but by another mapper imported viaMapper#users().SourceMethod.getDeclaringMapper()Method.getDefiningType()SourceMethod.getDefiningType()default TypeMethod.getMappingSourceType()Method.getResultType()Returns the type of the result.SourceMethod.getResultType()Method.getReturnType()Returns the return type of the methodSourceMethod.getReturnType()Methods in org.mapstruct.ap.internal.model.source that return types with arguments of type TypeModifier and TypeMethodDescriptionMethod.getThrownTypes()Returns all exceptions thrown by this methodSourceMethod.getThrownTypes()Method.getTypeParameters()Returns the formal type parameters of this method in declaration order.SourceMethod.getTypeParameters()Methods in org.mapstruct.ap.internal.model.source with parameters of type TypeModifier and TypeMethodDescriptionstatic voidSubclassMappingOptions.addInstance(org.mapstruct.ap.internal.gem.SubclassMappingGem subclassMapping, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, Set<SubclassMappingOptions> mappings, List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator) static voidSubclassMappingOptions.addInstances(org.mapstruct.ap.internal.gem.SubclassMappingsGem gem, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, Set<SubclassMappingOptions> mappings, List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator) booleanChecks whether the provided sourceType and provided targetType match with the parameter respectively return type of the method.booleanSourceMethod.Builder.setDeclaringMapper(Type declaringMapper) SourceMethod.Builder.setDefiningType(Type definingType) SourceMethod.Builder.setReturnType(Type returnType) Method parameters in org.mapstruct.ap.internal.model.source with type arguments of type TypeModifier and TypeMethodDescriptionbooleanChecks whether the provided sourceType and provided targetType match with the parameter respectively return type of the method.booleanSourceMethod.Builder.setExceptionTypes(List<Type> exceptionTypes) -
Uses of Type in org.mapstruct.ap.internal.model.source.builtin
Methods in org.mapstruct.ap.internal.model.source.builtin that return TypeModifier and TypeMethodDescriptionfinal TypeBuiltInMethod.getDeclaringMapper()Returns the mapper type declaring this method if it is not declared by the mapper interface currently processed but by another mapper imported viaMapper#users().BuiltInMethod.getDefiningType()BuiltInMethod.getResultType()AbstractToXmlGregorianCalendar.getReturnType()CalendarToZonedDateTime.getReturnType()XmlGregorianCalendarToCalendar.getReturnType()XmlGregorianCalendarToDate.getReturnType()XmlGregorianCalendarToJodaDateTime.getReturnType()XmlGregorianCalendarToJodaLocalDate.getReturnType()XmlGregorianCalendarToJodaLocalDateTime.getReturnType()XmlGregorianCalendarToJodaLocalTime.getReturnType()XmlGregorianCalendarToLocalDate.getReturnType()XmlGregorianCalendarToLocalDateTime.getReturnType()XmlGregorianCalendarToString.getReturnType()ZonedDateTimeToCalendar.getReturnType()Methods in org.mapstruct.ap.internal.model.source.builtin that return types with arguments of type TypeModifier and TypeMethodDescriptionAbstractToXmlGregorianCalendar.getImportTypes()BuiltInMethod.getImportTypes()Returns the types used by this method for which import statements need to be generated.CalendarToXmlGregorianCalendar.getImportTypes()CalendarToZonedDateTime.getImportTypes()DateToXmlGregorianCalendar.getImportTypes()JodaDateTimeToXmlGregorianCalendar.getImportTypes()JodaLocalDateTimeToXmlGregorianCalendar.getImportTypes()JodaLocalDateToXmlGregorianCalendar.getImportTypes()JodaLocalTimeToXmlGregorianCalendar.getImportTypes()LocalDateTimeToXmlGregorianCalendar.getImportTypes()LocalDateToXmlGregorianCalendar.getImportTypes()StringToXmlGregorianCalendar.getImportTypes()XmlGregorianCalendarToCalendar.getImportTypes()XmlGregorianCalendarToDate.getImportTypes()XmlGregorianCalendarToJodaDateTime.getImportTypes()XmlGregorianCalendarToJodaLocalDate.getImportTypes()XmlGregorianCalendarToJodaLocalDateTime.getImportTypes()XmlGregorianCalendarToJodaLocalTime.getImportTypes()XmlGregorianCalendarToLocalDate.getImportTypes()XmlGregorianCalendarToLocalDateTime.getImportTypes()XmlGregorianCalendarToString.getImportTypes()ZonedDateTimeToCalendar.getImportTypes()ZonedDateTimeToXmlGregorianCalendar.getImportTypes()BuiltInMethod.getThrownTypes()BuiltInMethod.getTypeParameters()Methods in org.mapstruct.ap.internal.model.source.builtin with parameters of type TypeModifier and TypeMethodDescriptionbooleanBuiltInMethod.doTypeVarsMatch(Type parameter, Type returnType) Analyzes the Java Generic type variables in the parameter do match the type variables in the build in method same goes for the returnType.booleanChecks whether the provided sourceType and provided targetType match with the parameter respectively return type of the method.Method parameters in org.mapstruct.ap.internal.model.source.builtin with type arguments of type Type -
Uses of Type in org.mapstruct.ap.internal.model.source.selector
Methods in org.mapstruct.ap.internal.model.source.selector that return TypeModifier and TypeMethodDescriptionSelectionContext.getMappingTargetType()SelectionContext.getReturnType()SelectionContext.getSourceType()Methods in org.mapstruct.ap.internal.model.source.selector with parameters of type TypeModifier and TypeMethodDescriptionstatic SelectionContextSelectionContext.forFactoryMethods(Method mappingMethod, Type alternativeTarget, SelectionParameters selectionParameters, TypeFactory typeFactory) static SelectionContextSelectionContext.forLifecycleMethods(Method mappingMethod, Type targetType, SelectionParameters selectionParameters, TypeFactory typeFactory, Supplier<List<ParameterBinding>> additionalParameterBindingsProvider) static SelectionContextSelectionContext.forMappingMethods(Method mappingMethod, Type source, Type target, SelectionCriteria criteria, TypeFactory typeFactory) -
Uses of Type in org.mapstruct.ap.internal.processor.creation
Methods in org.mapstruct.ap.internal.processor.creation with parameters of type TypeModifier and TypeMethodDescriptionMappingResolverImpl.getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger)