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.common |
Contains types which are shared between the intermediary mapping method model ("source model") and the mapper model.
|
org.mapstruct.ap.internal.model.source.builtin |
Contains "built-in methods" which may be added as private methods to a generated mapper.
|
Modifier and Type | Method and Description |
---|---|
Assignment |
SimpleConversion.from(ConversionContext conversionContext) |
Assignment |
ConversionProvider.from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
Assignment |
ReverseConversion.from(ConversionContext conversionContext) |
Assignment |
DateToStringConversion.from(ConversionContext conversionContext) |
protected Set<Type> |
SimpleConversion.getFromConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "from" conversion.
|
protected Set<Type> |
BigIntegerToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaDateTimeToCalendarConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJavaTimeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJodaTypeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToBigIntegerConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
EnumStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected abstract String |
SimpleConversion.getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.
|
protected String |
JavaZonedDateTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JodaDateTimeToCalendarConversion.getFromExpression(ConversionContext conversionContext) |
String |
WrapperToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
AbstractJavaTimeToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
AbstractJodaTypeToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JodaTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
CharWrapperToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToBigIntegerConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
String |
EnumStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
WrapperToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
CharToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
protected Set<Type> |
SimpleConversion.getToConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "to" conversion.
|
protected Set<Type> |
JodaDateTimeToCalendarConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJavaTimeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJodaTypeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected abstract String |
SimpleConversion.getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.
|
protected String |
JavaZonedDateTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JodaDateTimeToCalendarConversion.getToExpression(ConversionContext conversionContext) |
String |
WrapperToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
AbstractJavaTimeToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
AbstractJodaTypeToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JodaTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
CharWrapperToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToBigIntegerConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
String |
EnumStringConversion.getToExpression(ConversionContext conversionContext) |
String |
WrapperToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
CharToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
Assignment |
SimpleConversion.to(ConversionContext conversionContext) |
Assignment |
ConversionProvider.to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
Assignment |
ReverseConversion.to(ConversionContext conversionContext) |
Assignment |
DateToStringConversion.to(ConversionContext conversionContext) |
Modifier and Type | Method and Description |
---|---|
static Assignment |
AssignmentFactory.createMethodReference(BuiltInMethod method,
ConversionContext contextParam) |
Constructor and Description |
---|
MethodReference(BuiltInMethod method,
ConversionContext contextParam) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultConversionContext
Default implementation of the
ConversionContext passed to conversion providers. |
Modifier and Type | Method and Description |
---|---|
String |
StringToXmlGregorianCalendar.getContextParameter(ConversionContext conversionContext) |
String |
XmlGregorianCalendarToString.getContextParameter(ConversionContext conversionContext) |
String |
BuiltInMethod.getContextParameter(ConversionContext conversionContext)
the conversion context is used to format an auxiliary parameter in the method call with context specific
information such as a date format.
|
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.