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 |
ConversionProvider.from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
Assignment |
DateToStringConversion.from(ConversionContext conversionContext) |
Assignment |
ReverseConversion.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> |
AbstractJavaTimeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJodaTypeToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractNumberToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToBigIntegerConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigDecimalToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToPrimitiveConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
BigIntegerToWrapperConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
EnumStringConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaDateTimeToCalendarConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaTimeToDateConversion.getFromConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
SimpleConversion.getFromConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "from" conversion.
|
protected String |
AbstractJavaTimeToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
AbstractJodaTypeToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToBigIntegerConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigDecimalToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
BigIntegerToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
String |
CharToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
CharWrapperToStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
DateToSqlDateConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimeConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimestampConversion.getFromExpression(ConversionContext conversionContext) |
String |
EnumStringConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateToDateConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JavaZonedDateTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JodaDateTimeToCalendarConversion.getFromExpression(ConversionContext conversionContext) |
protected String |
JodaTimeToDateConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToPrimitiveConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
PrimitiveToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
protected abstract String |
SimpleConversion.getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.
|
String |
WrapperToStringConversion.getFromExpression(ConversionContext conversionContext) |
String |
WrapperToWrapperConversion.getFromExpression(ConversionContext conversionContext) |
List<HelperMethod> |
BigDecimalToStringConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
BigIntegerToStringConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
ConversionProvider.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
DateToStringConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
ReverseConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
List<HelperMethod> |
SimpleConversion.getRequiredHelperMethods(ConversionContext conversionContext) |
protected List<Type> |
SimpleConversion.getToConversionExceptionTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJavaTimeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
AbstractJodaTypeToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
Set<Type> |
AbstractNumberToStringConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
DateToSqlTimeConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
DateToSqlTimestampConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
JodaDateTimeToCalendarConversion.getToConversionImportTypes(ConversionContext conversionContext) |
protected Set<Type> |
SimpleConversion.getToConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "to" conversion.
|
protected String |
AbstractJavaTimeToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
AbstractJodaTypeToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToBigIntegerConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
BigDecimalToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
BigIntegerToWrapperConversion.getToExpression(ConversionContext conversionContext) |
String |
CharToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
CharWrapperToStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
DateToSqlDateConversion.getToExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimeConversion.getToExpression(ConversionContext conversionContext) |
protected String |
DateToSqlTimestampConversion.getToExpression(ConversionContext conversionContext) |
String |
EnumStringConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaLocalDateToDateConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JavaZonedDateTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JodaDateTimeToCalendarConversion.getToExpression(ConversionContext conversionContext) |
protected String |
JodaTimeToDateConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToPrimitiveConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
PrimitiveToWrapperConversion.getToExpression(ConversionContext conversionContext) |
protected abstract String |
SimpleConversion.getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.
|
String |
WrapperToStringConversion.getToExpression(ConversionContext conversionContext) |
String |
WrapperToWrapperConversion.getToExpression(ConversionContext conversionContext) |
protected boolean |
AbstractNumberToStringConversion.requiresDecimalFormat(ConversionContext conversionContext) |
Assignment |
ConversionProvider.to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
Assignment |
DateToStringConversion.to(ConversionContext conversionContext) |
Assignment |
ReverseConversion.to(ConversionContext conversionContext) |
Assignment |
SimpleConversion.to(ConversionContext conversionContext) |
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
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 |
StringToXmlGregorianCalendar.getContextParameter(ConversionContext conversionContext) |
String |
XmlGregorianCalendarToString.getContextParameter(ConversionContext conversionContext) |
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.