Package | Description |
---|---|
org.mapstruct.ap.internal.conversion |
Provides built-in conversions between primitive and wrapper types, strings, dates etc.
|
org.mapstruct.ap.internal.model |
Meta-model of mapper types, their methods, mappings between properties etc.
|
org.mapstruct.ap.internal.model.assignment |
Meta-model of assignments.
|
org.mapstruct.ap.internal.model.beanmapping |
helper classes used in
BeanMappingMethod
|
org.mapstruct.ap.internal.model.common |
Contains types which are shared between the intermediary mapping method model ("source model") and the mapper model.
|
org.mapstruct.ap.internal.model.source |
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
|
org.mapstruct.ap.internal.model.source.builtin |
Contains "built-in methods" which may be added as private methods to a generated mapper.
|
org.mapstruct.ap.internal.model.source.selector |
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.
|
org.mapstruct.ap.internal.processor.creation |
Contains all helper classes for the
MapperCreationProcessor
|
Modifier and Type | Method and Description |
---|---|
Type |
CreateDecimalFormat.getReturnType() |
Modifier and Type | Method and Description |
---|---|
protected List<Type> |
AbstractNumberToStringConversion.getFromConversionExceptionTypes(ConversionContext conversionContext) |
protected List<Type> |
SimpleConversion.getFromConversionExceptionTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaZonedDateTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJodaTypeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractNumberToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaLocalDateTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToBigIntegerConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
EnumStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJavaTimeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
PrimitiveToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaDateTimeToCalendarConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
WrapperToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaLocalDateToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaLocalDateToSqlDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
SimpleConversion.getFromConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "from" conversion.
|
protected Set<Type> |
StaticParseToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
CurrencyToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
Set<Type> |
CreateDecimalFormat.getImportTypes() |
protected List<Type> |
SimpleConversion.getToConversionExceptionTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaZonedDateTimeToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJodaTypeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
Set<Type> |
AbstractNumberToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaLocalDateTimeToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
DateToSqlDateConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJavaTimeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaInstantToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
DateToSqlTimeConversion.getToConversionImportTypes(ConversionContext conversionContext) |
Set<Type> |
PrimitiveToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
DateToSqlTimestampConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaDateTimeToCalendarConversion.getToConversionImportTypes(ConversionContext conversionContext) |
Set<Type> |
WrapperToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaLocalDateToDateConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JavaLocalDateToSqlDateConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
SimpleConversion.getToConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "to" conversion.
|
Modifier and Type | Method and Description |
---|---|
ConversionProvider |
Conversions.getConversion(Type sourceType,
Type targetType) |
Modifier and Type | Field and Description |
---|---|
protected SortedSet<Type> |
GeneratedType.GeneratedTypeBuilder.extraImportedTypes |
Modifier and Type | Method and Description |
---|---|
Type |
SupportingMappingMethod.findType(String name)
Finds a
Type by a given name. |
Type |
HelperMethod.getDeclaringMapper()
Returns the mapper type declaring this method if it is not declared by the mapper interface currently processed
but by another mapper imported via
Mapper#users() . |
Type |
ForgedMethod.getDeclaringMapper() |
Type |
LifecycleCallbackMethodReference.getDeclaringType() |
Type |
MethodReference.getDefiningType() |
Type |
HelperMethod.getDefiningType() |
Type |
ForgedMethod.getDefiningType() |
protected Type |
StreamMappingMethod.Builder.getElementType(Type parameterType) |
protected Type |
IterableMappingMethod.Builder.getElementType(Type parameterType) |
protected abstract Type |
ContainerMappingMethodBuilder.getElementType(Type parameterType) |
Type |
IterableCreation.getEnumSetElementType() |
Type |
LifecycleCallbackMethodReference.getMethodResultType()
Returns the result type of the mapping method in which this callback method is called
|
Type |
LifecycleCallbackMethodReference.getMethodReturnType()
Returns the return type of the mapping method in which this callback method is called
|
abstract Type |
ContainerMappingMethod.getResultElementType() |
Type |
StreamMappingMethod.getResultElementType() |
Type |
IterableMappingMethod.getResultElementType() |
Type |
MappingMethod.getResultType() |
Type |
IterableCreation.getResultType() |
Type |
HelperMethod.getResultType() |
Type |
ForgedMethod.getResultType() |
Type |
MappingMethod.getReturnType() |
Type |
MethodReference.getReturnType() |
Type |
ForgedMethod.getReturnType() |
Type |
BeanMappingMethod.getReturnTypeToConstruct() |
Type |
MethodReference.getSingleSourceParameterType() |
Type |
StreamMappingMethod.getSourceElementType() |
Type |
IterableMappingMethod.getSourceElementType() |
Type |
MethodReference.getSourceType() |
Type |
TypeConversion.getSourceType() |
Type |
ForgedMethodHistory.getSourceType() |
Type |
PropertyMapping.getTargetType() |
Type |
ForgedMethodHistory.getTargetType() |
Type |
NestedPropertyMappingMethod.SafePropertyEntry.getType() |
Type |
Field.getType()
Returns the type of this field.
|
Type |
Annotation.getType() |
Type |
ValueMappingMethod.getUnexpectedValueMappingException() |
Type |
MethodReference.inferTypeWhenEnum(Type type) |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
SupportingMappingMethod.getImportTypes() |
Set<Type> |
LifecycleCallbackMethodReference.getImportTypes() |
Set<Type> |
BeanMappingMethod.getImportTypes() |
Set<Type> |
MappingMethod.getImportTypes() |
Set<Type> |
NormalTypeMappingMethod.getImportTypes() |
Set<Type> |
MethodReference.getImportTypes() |
Set<Type> |
Constructor.getImportTypes() |
Set<Type> |
AnnotationMapperReference.getImportTypes() |
Set<Type> |
AnnotatedConstructor.getImportTypes() |
SortedSet<Type> |
Decorator.getImportTypes() |
Set<Type> |
ContainerMappingMethod.getImportTypes() |
Set<Type> |
NoArgumentConstructor.getImportTypes() |
Set<Type> |
StreamMappingMethod.getImportTypes() |
Set<Type> |
IterableCreation.getImportTypes() |
Set<Type> |
HelperMethod.getImportTypes()
Returns the types used by this method for which import statements need to be generated.
|
Set<Type> |
DefaultMapperReference.getImportTypes() |
Set<Type> |
DecoratorConstructor.getImportTypes() |
Set<Type> |
TypeConversion.getImportTypes() |
Set<Type> |
PropertyMapping.getImportTypes() |
Set<Type> |
MapMappingMethod.getImportTypes() |
Set<Type> |
ValueMappingMethod.getImportTypes() |
Set<Type> |
ServicesEntry.getImportTypes() |
Set<Type> |
NestedPropertyMappingMethod.getImportTypes() |
Set<Type> |
Field.getImportTypes() |
Set<Type> |
SupportingConstructorFragment.getImportTypes() |
Set<Type> |
Annotation.getImportTypes() |
SortedSet<Type> |
GeneratedType.getImportTypes() |
List<Type> |
MapMappingMethod.getResultElementTypes() |
List<Type> |
MapMappingMethod.getSourceElementTypes() |
List<Type> |
MappingMethod.getThrownTypes() |
List<Type> |
MethodReference.getThrownTypes() |
List<Type> |
HelperMethod.getThrownTypes() |
List<Type> |
TypeConversion.getThrownTypes() |
List<Type> |
ForgedMethod.getThrownTypes() |
Modifier and Type | Method and Description |
---|---|
protected void |
GeneratedType.addIfImportRequired(Collection<Type> collection,
Type typeToAdd) |
static List<LifecycleCallbackMethodReference> |
LifecycleMethodResolver.afterMappingMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
LifecycleMethodResolver.beforeMappingMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
boolean |
MappingBuilderContext.canGenerateAutoSubMappingBetween(Type sourceType,
Type targetType) |
boolean |
HelperMethod.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 MethodReference |
MethodReference.forConstructorInvocation(Type type,
List<ParameterBinding> parameterBindings) |
static ForgedMethod |
ForgedMethod.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 element
|
static ForgedMethod |
ForgedMethod.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 ForgedMethod |
ForgedMethod.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 property
|
static MethodReference |
MethodReference.forStaticBuilder(String builderCreationMethod,
Type definingType) |
protected Type |
StreamMappingMethod.Builder.getElementType(Type parameterType) |
protected Type |
IterableMappingMethod.Builder.getElementType(Type parameterType) |
protected abstract Type |
ContainerMappingMethodBuilder.getElementType(Type parameterType) |
static MethodReference |
ObjectFactoryMethodResolver.getFactoryMethod(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
static DefaultMapperReference |
DefaultMapperReference.getInstance(Type type,
boolean isAnnotatedMapper,
TypeFactory typeFactory,
List<String> otherMapperReferences) |
static List<SelectedMethod<SourceMethod>> |
ObjectFactoryMethodResolver.getMatchingFactoryMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx) |
Assignment |
MappingBuilderContext.MappingResolver.getTargetAssignment(Method mappingMethod,
ForgedMethodHistory description,
Type targetType,
FormattingParameters formattingParameters,
SelectionCriteria criteria,
SourceRHS sourceRHS,
AnnotationMirror positionHint,
Supplier<Assignment> forger)
returns a parameter assignment
|
Type |
MethodReference.inferTypeWhenEnum(Type type) |
boolean |
HelperMethod.matches(List<Type> sourceTypes,
Type targetType)
Checks whether the provided sourceType and provided targetType match with the parameter respectively return type
of the method.
|
boolean |
ForgedMethod.matches(List<Type> sourceTypes,
Type targetType) |
NestedTargetPropertyMappingHolder.Builder |
NestedTargetPropertyMappingHolder.Builder.targetPropertyType(Type targetType) |
CollectionAssignmentBuilder |
CollectionAssignmentBuilder.targetType(Type targetType) |
BeanMappingMethod.Builder |
BeanMappingMethod.Builder.userDefinedReturnType(Type userDefinedReturnType) |
Modifier and Type | Method and Description |
---|---|
protected void |
GeneratedType.addIfImportRequired(Collection<Type> collection,
Type typeToAdd) |
void |
ForgedMethod.addThrownTypes(List<Type> thrownTypesToAdd) |
T |
GeneratedType.GeneratedTypeBuilder.extraImports(SortedSet<Type> extraImportedTypes) |
boolean |
HelperMethod.matches(List<Type> sourceTypes,
Type targetType)
Checks whether the provided sourceType and provided targetType match with the parameter respectively return type
of the method.
|
boolean |
ForgedMethod.matches(List<Type> sourceTypes,
Type targetType) |
Constructor and Description |
---|
Annotation(Type type) |
Annotation(Type type,
List<String> properties) |
AnnotationMapperReference(Type type,
String variableName,
List<Annotation> annotations,
boolean isUsed,
boolean fieldFinal,
boolean includeAnnotationsOnField) |
Field(Type type,
String variableName) |
Field(Type type,
String variableName,
boolean used) |
ForgedMethodHistory(ForgedMethodHistory history,
String sourceElement,
String targetPropertyName,
Type sourceType,
Type targetType,
boolean usePropertyNames,
String elementType) |
MapperReference(Type type,
String variableName) |
MapperReference(Type type,
String variableName,
boolean isUsed) |
Constructor and Description |
---|
GeneratedType(TypeFactory typeFactory,
String packageName,
String name,
String superClassName,
String interfacePackage,
String interfaceName,
List<MappingMethod> methods,
List<Field> fields,
Options options,
VersionInformation versionInformation,
Accessibility accessibility,
SortedSet<Type> extraImportedTypes,
Constructor constructor) |
TypeConversion(Set<Type> importTypes,
List<Type> exceptionTypes,
String expression) |
TypeConversion(Set<Type> importTypes,
List<Type> exceptionTypes,
String expression) |
Modifier and Type | Method and Description |
---|---|
Type |
StreamAdderWrapper.getAdderType() |
Type |
AdderWrapper.getAdderType() |
Type |
WrapperForCollectionsAndMaps.getNullCheckLocalVarType() |
Type |
AssignmentWrapper.getSourceType() |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
LocalVarWrapper.getImportTypes() |
Set<Type> |
UpdateWrapper.getImportTypes() |
Set<Type> |
SetterWrapperForCollectionsAndMapsWithNullCheck.getImportTypes() |
Set<Type> |
StreamAdderWrapper.getImportTypes() |
Set<Type> |
GetterWrapperForCollectionsAndMaps.getImportTypes() |
Set<Type> |
EnumConstantWrapper.getImportTypes() |
Set<Type> |
Java8FunctionWrapper.getImportTypes() |
Set<Type> |
ArrayCopyWrapper.getImportTypes() |
Set<Type> |
ExistingInstanceSetterWrapperForCollectionsAndMaps.getImportTypes() |
Set<Type> |
AssignmentWrapper.getImportTypes() |
Set<Type> |
AdderWrapper.getImportTypes() |
List<Type> |
LocalVarWrapper.getThrownTypes() |
List<Type> |
UpdateWrapper.getThrownTypes() |
List<Type> |
SetterWrapper.getThrownTypes() |
List<Type> |
StreamAdderWrapper.getThrownTypes() |
List<Type> |
WrapperForCollectionsAndMaps.getThrownTypes() |
List<Type> |
AssignmentWrapper.getThrownTypes() |
List<Type> |
AdderWrapper.getThrownTypes() |
Modifier and Type | Method and Description |
---|---|
static boolean |
SetterWrapper.doSourceNullCheck(Assignment rhs,
org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs,
org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms,
Type targetType)
Wraps the assignment in a target setter. include a null check when
- Not if source is the parameter iso property, because the null check is than handled by the bean mapping
- Not when source is primitive, you can't null check a primitive
- The source property is fed to a conversion somehow before its assigned to the target
- The user decided to ALLWAYS include a null check
|
Constructor and Description |
---|
ArrayCopyWrapper(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) |
Java8FunctionWrapper(Assignment decoratedAssignment,
Type functionType) |
LocalVarWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type targetType,
boolean fieldAssignment) |
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 and Description |
---|
AdderWrapper(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) |
LocalVarWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type targetType,
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) |
Modifier and Type | Method and Description |
---|---|
Type |
PropertyEntry.getType() |
Modifier and Type | Method and Description |
---|---|
static MappingReferences |
MappingReferences.forSourceMethod(SourceMethod sourceMethod,
Type targetType,
Set<String> targetProperties,
FormattingMessager messager,
TypeFactory typeFactory) |
static PropertyEntry |
PropertyEntry.forSourceReference(String[] name,
Accessor readAccessor,
Accessor presenceChecker,
Type type)
Constructor used to create
SourceReference property entries from a mapping |
TargetReference.Builder |
TargetReference.Builder.targetType(Type targetType) |
SourceReference.BuilderFromProperty |
SourceReference.BuilderFromProperty.type(Type type) |
Modifier and Type | Method and Description |
---|---|
Type |
TypeFactory.classTypeOf(Type type)
Returns the Type that represents the declared Class type of the given type.
|
Type |
TypeFactory.createVoidType()
creates a void return type
|
Type |
TypeFactory.effectiveResultTypeFor(Type type,
org.mapstruct.ap.internal.gem.BuilderGem builder) |
Type |
Type.erasure() |
Type |
BuilderType.getBuilder()
The type of the builder itself.
|
Type |
BuilderType.getBuildingType()
The type that is being built by the builder.
|
Type |
Type.getComponentType() |
Type |
Type.getImplementationType()
Returns the implementation type to be instantiated in case this type is an interface iterable, collection or map
type.
|
Type |
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 |
TypeFactory.getReturnType(DeclaredType includingType,
Accessor accessor) |
Type |
TypeFactory.getReturnType(ExecutableType method) |
Type |
SourceRHS.getSourceType() |
Type |
Assignment.getSourceType()
the source type used in the matching process
|
Type |
SourceRHS.getSourceTypeForMatching()
The source type that is to be used when resolving the mapping from source to target.
|
Type |
ConversionContext.getTargetType()
Returns the target type of this conversion.
|
Type |
DefaultConversionContext.getTargetType() |
Type |
Parameter.getType() |
Type |
ImplementationType.getType() |
Type |
ParameterBinding.getType() |
Type |
TypeFactory.getType(Class<?> type) |
Type |
TypeFactory.getType(String canonicalName) |
Type |
TypeFactory.getType(TypeElement typeElement) |
Type |
TypeFactory.getType(TypeMirror mirror) |
Type |
Type.getTypeBound()
Establishes the type bound:
{@code
|
Type |
TypeFactory.getTypeForLiteral(Class<?> type) |
Type |
TypeFactory.getWrappedType(Type type) |
Type |
Type.resolveTypeVarToType(Type declaredType,
Type parameterizedType)
Steps through the declaredType in order to find a match for this typevar Type.
|
Type |
Type.withoutBounds() |
Modifier and Type | Method and Description |
---|---|
List<Type> |
Type.determineTypeArguments(Class<?> superclass)
Searches for the given superclass and collects all type arguments for the given class
|
Set<Type> |
Type.getImportTypes() |
Set<Type> |
Parameter.getImportTypes() |
Set<Type> |
SourceRHS.getImportTypes() |
Set<Type> |
ParameterBinding.getImportTypes() |
abstract Set<Type> |
ModelElement.getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
Set<Type> |
Assignment.getImportTypes()
returns all types required as import by the assignment statement.
|
List<Type> |
SourceRHS.getThrownTypes() |
List<Type> |
Assignment.getThrownTypes()
returns all types exception types thrown by this assignment.
|
List<Type> |
TypeFactory.getThrownTypes(Accessor accessor) |
List<Type> |
TypeFactory.getThrownTypes(ExecutableType method) |
List<Type> |
Type.getTypeParameters() |
Modifier and Type | Method and Description |
---|---|
BuilderType |
TypeFactory.builderTypeFor(Type type,
org.mapstruct.ap.internal.gem.BuilderGem builder) |
boolean |
Type.canAccess(Type type,
ExecutableElement method) |
Type |
TypeFactory.classTypeOf(Type type)
Returns the Type that represents the declared Class type of the given type.
|
int |
Type.compareTo(Type o) |
static BuilderType |
BuilderType.create(BuilderInfo builderInfo,
Type typeToBuild,
TypeFactory typeFactory,
Types typeUtils) |
ImplementationType |
ImplementationType.createNew(Type type)
Creates new
ImplementationType that has the same ImplementationType.initialCapacityConstructor and
ImplementationType.loadFactorAdjustment , but a different underlying Type |
int |
Type.distanceTo(Type assignableOther)
Returns the length of the shortest path in the type hierarchy between this type and the specified other type.
|
Type |
TypeFactory.effectiveResultTypeFor(Type type,
org.mapstruct.ap.internal.gem.BuilderGem builder) |
static Parameter |
Parameter.forElementAndType(VariableElement element,
Type parameterType,
boolean isVarArgs) |
static Parameter |
Parameter.forForgedMappingTarget(Type parameterType) |
static ParameterBinding |
ParameterBinding.forMappingTargetBinding(Type resultType) |
static ParameterBinding |
ParameterBinding.forSourceTypeBinding(Type sourceType) |
static ParameterBinding |
ParameterBinding.forTargetTypeBinding(Type classTypeOf) |
static ParameterBinding |
ParameterBinding.fromTypeAndName(Type parameterType,
String parameterName) |
Type |
TypeFactory.getWrappedType(Type type) |
boolean |
Type.isAssignableTo(Type other)
Whether this type is assignable to the given other type.
|
boolean |
Type.isRawAssignableTo(Type other)
Whether this type is raw assignable to the given other type.
|
Type |
Type.resolveTypeVarToType(Type declaredType,
Type parameterizedType)
Steps through the declaredType in order to find a match for this typevar Type.
|
static ImplementationType |
ImplementationType.withDefaultConstructor(Type type) |
static ImplementationType |
ImplementationType.withInitialCapacity(Type type) |
static ImplementationType |
ImplementationType.withLoadFactorAdjustment(Type type) |
Constructor and Description |
---|
DefaultConversionContext(TypeFactory typeFactory,
FormattingMessager messager,
Type sourceType,
Type targetType,
FormattingParameters formattingParameters) |
Parameter(String name,
Type type) |
SourceRHS(String sourceParameterName,
String sourceReference,
String sourcePresenceCheckerReference,
Type sourceType,
Set<String> existingVariableNames,
String sourceErrorMessagePart) |
SourceRHS(String sourceReference,
Type sourceType,
Set<String> existingVariableNames,
String sourceErrorMessagePart) |
Type(Types typeUtils,
Elements 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 and Description |
---|
Type(Types typeUtils,
Elements 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) |
Modifier and Type | Method and Description |
---|---|
Type |
SourceMethod.getDeclaringMapper() |
Type |
Method.getDeclaringMapper()
Returns the mapper type declaring this method if it is not declared by the mapper interface currently processed
but by another mapper imported via
Mapper#users() . |
Type |
SourceMethod.getDefiningType() |
Type |
Method.getDefiningType() |
default Type |
Method.getMappingSourceType() |
Type |
SourceMethod.getResultType() |
Type |
Method.getResultType()
Returns the type of the result.
|
Type |
SourceMethod.getReturnType() |
Type |
Method.getReturnType()
Returns the return type of the method
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
SourceMethod.getThrownTypes() |
List<Type> |
Method.getThrownTypes()
Returns all exceptions thrown by this method
|
Modifier and Type | Method and Description |
---|---|
boolean |
SourceMethod.matches(List<Type> sourceTypes,
Type targetType) |
boolean |
Method.matches(List<Type> sourceTypes,
Type targetType)
Checks whether the provided sourceType and provided targetType match with the parameter respectively return type
of the method.
|
SourceMethod.Builder |
SourceMethod.Builder.setDeclaringMapper(Type declaringMapper) |
SourceMethod.Builder |
SourceMethod.Builder.setDefininingType(Type definingType) |
SourceMethod.Builder |
SourceMethod.Builder.setReturnType(Type returnType) |
Modifier and Type | Method and Description |
---|---|
boolean |
SourceMethod.matches(List<Type> sourceTypes,
Type targetType) |
boolean |
Method.matches(List<Type> sourceTypes,
Type targetType)
Checks whether the provided sourceType and provided targetType match with the parameter respectively return type
of the method.
|
SourceMethod.Builder |
SourceMethod.Builder.setExceptionTypes(List<Type> exceptionTypes) |
Modifier and Type | Method and Description |
---|---|
Type |
BuiltInMethod.getDeclaringMapper()
Returns the mapper type declaring this method if it is not declared by the mapper interface currently processed
but by another mapper imported via
Mapper#users() . |
Type |
BuiltInMethod.getDefiningType() |
Type |
BuiltInMethod.getResultType() |
Type |
AbstractToXmlGregorianCalendar.getReturnType() |
Type |
XmlGregorianCalendarToJodaLocalTime.getReturnType() |
Type |
ZonedDateTimeToCalendar.getReturnType() |
Type |
XmlGregorianCalendarToCalendar.getReturnType() |
Type |
XmlGregorianCalendarToJodaDateTime.getReturnType() |
Type |
JaxbElemToValue.getReturnType() |
Type |
XmlGregorianCalendarToString.getReturnType() |
Type |
XmlGregorianCalendarToJodaLocalDateTime.getReturnType() |
Type |
XmlGregorianCalendarToDate.getReturnType() |
Type |
CalendarToZonedDateTime.getReturnType() |
Type |
XmlGregorianCalendarToLocalDateTime.getReturnType() |
Type |
XmlGregorianCalendarToJodaLocalDate.getReturnType() |
Type |
XmlGregorianCalendarToLocalDate.getReturnType() |
Type |
FinalField.getType() |
Type |
BuiltInFieldReference.getType() |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
AbstractToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToJodaLocalTime.getImportTypes() |
Set<Type> |
JodaLocalDateTimeToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
ZonedDateTimeToCalendar.getImportTypes() |
Set<Type> |
LocalDateTimeToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
StringToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToCalendar.getImportTypes() |
Set<Type> |
BuiltInMethod.getImportTypes()
Returns the types used by this method for which import statements need to be generated.
|
Set<Type> |
CalendarToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToJodaDateTime.getImportTypes() |
Set<Type> |
JaxbElemToValue.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToString.getImportTypes() |
Set<Type> |
JodaDateTimeToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
DateToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToJodaLocalDateTime.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToDate.getImportTypes() |
Set<Type> |
JodaLocalDateToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
CalendarToZonedDateTime.getImportTypes() |
Set<Type> |
ZonedDateTimeToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
JodaLocalTimeToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToLocalDateTime.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToJodaLocalDate.getImportTypes() |
Set<Type> |
LocalDateToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
XmlGregorianCalendarToLocalDate.getImportTypes() |
List<Type> |
BuiltInMethod.getThrownTypes() |
Modifier and Type | Method and Description |
---|---|
boolean |
BuiltInMethod.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.
|
boolean |
JaxbElemToValue.doTypeVarsMatch(Type sourceType,
Type targetType) |
boolean |
BuiltInMethod.matches(List<Type> sourceTypes,
Type targetType)
Checks whether the provided sourceType and provided targetType match with the parameter respectively return type
of the method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BuiltInMethod.matches(List<Type> sourceTypes,
Type targetType)
Checks whether the provided sourceType and provided targetType match with the parameter respectively return type
of the method.
|
Constructor and Description |
---|
FinalField(Type type,
String variableName) |
Modifier and Type | Method and Description |
---|---|
<T extends Method> |
TypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
TargetTypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
FactoryParameterSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
XmlElementDeclSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
QualifierSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodFamilySelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
CreateOrUpdateSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
InheritanceSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodSelectors.getMatchingMethods(Method mappingMethod,
List<T> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
Modifier and Type | Method and Description |
---|---|
<T extends Method> |
TypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
TargetTypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
FactoryParameterSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
XmlElementDeclSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
QualifierSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodFamilySelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
CreateOrUpdateSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
InheritanceSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodSelectors.getMatchingMethods(Method mappingMethod,
List<T> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
Modifier and Type | Method and Description |
---|---|
Assignment |
MappingResolverImpl.getTargetAssignment(Method mappingMethod,
ForgedMethodHistory description,
Type targetType,
FormattingParameters formattingParameters,
SelectionCriteria criteria,
SourceRHS sourceRHS,
AnnotationMirror positionHint,
Supplier<Assignment> forger) |
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.