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 |
---|---|
static String |
ConversionUtils.bigDecimal(ConversionContext conversionContext)
Name for
BigDecimal . |
static String |
ConversionUtils.bigInteger(ConversionContext conversionContext)
Name for
BigInteger . |
static String |
ConversionUtils.currency(ConversionContext conversionContext)
Name for
Currency . |
static String |
ConversionUtils.date(ConversionContext conversionContext)
Name for
Date . |
static String |
ConversionUtils.dateTimeFormat(ConversionContext conversionContext)
Name for
org.joda.time.format.DateTimeFormat . |
static String |
ConversionUtils.dateTimeFormatter(ConversionContext conversionContext)
Name for
DateTimeFormatter . |
static String |
ConversionUtils.decimalFormat(ConversionContext conversionContext)
Name for
DecimalFormat . |
Assignment |
ReverseConversion.from(ConversionContext conversionContext) |
Assignment |
ConversionProvider.from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
Assignment |
DateToStringConversion.from(ConversionContext conversionContext) |
Assignment |
SimpleConversion.from(ConversionContext conversionContext) |
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) |
protected String |
JavaZonedDateTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
WrapperToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
CharToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
AbstractJodaTypeToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToBigIntegerConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
DateToSqlDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
String |
EnumStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
AbstractJavaTimeToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
CharWrapperToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaInstantToDateConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimeConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimestampConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JodaDateTimeToCalendarConversion.getFromExpression(ConversionContext conversionContext) |
String |
WrapperToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateToSqlDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
protected abstract String |
SimpleConversion.getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.
|
protected String |
StaticParseToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JodaTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
CurrencyToStringConversion.getFromExpression(ConversionContext conversionContext) |
List<HelperMethod> |
BigDecimalToStringConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
ReverseConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
BigIntegerToStringConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
ConversionProvider.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
DateToStringConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
SimpleConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
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.
|
protected String |
JavaZonedDateTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
WrapperToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
CharToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
AbstractJodaTypeToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToBigIntegerConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
DateToSqlDateConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
String |
EnumStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
AbstractJavaTimeToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
CharWrapperToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaInstantToDateConversion.getToExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimeConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimestampConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JodaDateTimeToCalendarConversion.getToExpression(ConversionContext conversionContext) |
String |
WrapperToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateToSqlDateConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToWrapperConversion.getToExpression(ConversionContext conversionContext) |
protected abstract String |
SimpleConversion.getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.
|
protected String |
StaticParseToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JodaTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
protected String |
CurrencyToStringConversion.getToExpression(ConversionContext conversionContext) |
static String |
ConversionUtils.localDateTime(ConversionContext conversionContext)
Name for
LocalDateTime . |
static String |
ConversionUtils.locale(ConversionContext conversionContext)
Name for
Locale . |
protected boolean |
AbstractNumberToStringConversion.requiresDecimalFormat(ConversionContext conversionContext) |
static String |
ConversionUtils.simpleDateFormat(ConversionContext conversionContext)
Name for
SimpleDateFormat . |
static String |
ConversionUtils.sqlDate(ConversionContext conversionContext)
Name for
Date . |
static String |
ConversionUtils.time(ConversionContext conversionContext)
Name for
Time . |
static String |
ConversionUtils.timestamp(ConversionContext conversionContext)
Name for
Timestamp . |
Assignment |
ReverseConversion.to(ConversionContext conversionContext) |
Assignment |
ConversionProvider.to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
Assignment |
DateToStringConversion.to(ConversionContext conversionContext) |
Assignment |
SimpleConversion.to(ConversionContext conversionContext) |
static String |
ConversionUtils.zonedDateTime(ConversionContext conversionContext)
Name for
ZonedDateTime . |
static String |
ConversionUtils.zoneId(ConversionContext conversionContext)
Name for
ZoneId . |
static String |
ConversionUtils.zoneOffset(ConversionContext conversionContext)
Name for
ZoneOffset . |
Modifier and Type | Method and Description |
---|---|
static MethodReference |
MethodReference.forBuiltInMethod(BuiltInMethod method,
ConversionContext contextParam) |
String |
HelperMethod.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.
|
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 |
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.
|
String |
XmlGregorianCalendarToString.getContextParameter(ConversionContext conversionContext) |
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.