| Package | Description |
|---|---|
| org.mapstruct.ap.conversion |
Provides built-in conversions between primitive and wrapper types, strings, dates etc.
|
| org.mapstruct.ap.model |
Meta-model of mapper types, their methods, mappings between properties etc.
|
| org.mapstruct.ap.model.common |
Contains types which are shared between the intermediary mapping method model ("source model") and the mapper model.
|
| org.mapstruct.ap.model.source |
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
|
| org.mapstruct.ap.model.source.builtin |
Contains "built-in methods" which may be added as private methods to a generated mapper.
|
| org.mapstruct.ap.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.
|
| Modifier and Type | Method and Description |
|---|---|
ConversionProvider |
Conversions.getConversion(Type sourceType,
Type targetType) |
| Modifier and Type | Method and Description |
|---|---|
Type |
MappingMethod.getResultType() |
Type |
MappingMethod.getReturnType() |
Type |
MethodReference.getSingleSourceParameterType() |
Type |
PropertyMapping.getSourceType() |
Type |
PropertyMapping.getTargetType() |
Type |
Annotation.getType() |
Type |
Field.getType()
Returns the type of this field.
|
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
TypeConversion.getExceptionTypes() |
Set<Type> |
TypeConversion.getImportTypes() |
Set<Type> |
MethodReference.getImportTypes() |
Set<Type> |
BeanMappingMethod.getImportTypes() |
Set<Type> |
VirtualMappingMethod.getImportTypes() |
Set<Type> |
PropertyMapping.getImportTypes() |
Set<Type> |
IterableMappingMethod.getImportTypes() |
Set<Type> |
Annotation.getImportTypes() |
Set<Type> |
DefaultMapperReference.getImportTypes() |
SortedSet<Type> |
GeneratedType.getImportTypes() |
Set<Type> |
DecoratorConstructor.getImportTypes() |
Set<Type> |
AnnotationMapperReference.getImportTypes() |
Set<Type> |
MapMappingMethod.getImportTypes() |
Set<Type> |
Field.getImportTypes() |
Set<Type> |
MappingMethod.getImportTypes() |
| Modifier and Type | Method and Description |
|---|---|
static DefaultMapperReference |
DefaultMapperReference.getInstance(Type type,
boolean isAnnotatedMapper,
TypeFactory typeFactory,
List<String> otherMapperReferences) |
| Constructor and Description |
|---|
Annotation(Type type) |
AnnotationMapperReference(Type type,
String variableName,
Annotation annotation) |
Field(Type type,
String variableName) |
MapperReference(Type type,
String variableName) |
MethodReference(SourceMethod method,
MapperReference declaringMapper,
Type targetType)
Creates a new reference to the given method.
|
PropertyMapping(String sourceBeanName,
String sourceName,
String sourceAccessorName,
Type sourceType,
String targetName,
String targetAccessorName,
Type targetType,
MethodReference mappingMethod,
TypeConversion conversion) |
| Constructor and Description |
|---|
TypeConversion(Set<Type> importTypes,
List<Type> exceptionTypes,
String conversionString) |
TypeConversion(Set<Type> importTypes,
List<Type> exceptionTypes,
String conversionString) |
| 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 |
Type.erasure() |
Type |
Type.getImplementationType()
Returns the implementation type to be instantiated in case this type is an interface iterable, collection or map
type.
|
Type |
TypeFactory.getReturnType(ExecutableElement method) |
Type |
DefaultConversionContext.getTargetType() |
Type |
ConversionContext.getTargetType()
Returns the target type of this conversion.
|
Type |
Parameter.getType() |
Type |
TypeFactory.getType(Class<?> type) |
Type |
TypeFactory.getType(String canonicalName) |
Type |
TypeFactory.getType(TypeElement typeElement) |
Type |
TypeFactory.getType(TypeMirror mirror) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
Parameter.getImportTypes() |
abstract Set<Type> |
ModelElement.getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
Set<Type> |
Type.getImportTypes() |
List<Type> |
Type.getTypeParameters() |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeFactory.classTypeOf(Type type)
Returns the Type that represents the declared Class type of the given type.
|
int |
Type.compareTo(Type o) |
int |
Type.distanceTo(Type assignableOther)
Returns the length of the shortest path in the type hierarchy between this type and the specified other type.
|
boolean |
Type.isAssignableTo(Type other)
Whether this type is assignable to the given other type.
|
| Constructor and Description |
|---|
DefaultConversionContext(TypeFactory typeFactory,
Type targetType,
String format) |
Parameter(String name,
Type type) |
Parameter(String name,
Type type,
boolean mappingTarget,
boolean targetType) |
Type(Types typeUtils,
TypeMirror typeMirror,
TypeElement typeElement,
List<Type> typeParameters,
Type implementationType,
String packageName,
String name,
String qualifiedName,
boolean isInterface,
boolean isEnumType,
boolean isIterableType,
boolean isCollectionType,
boolean isMapType,
boolean isImported) |
| Constructor and Description |
|---|
Type(Types typeUtils,
TypeMirror typeMirror,
TypeElement typeElement,
List<Type> typeParameters,
Type implementationType,
String packageName,
String name,
String qualifiedName,
boolean isInterface,
boolean isEnumType,
boolean isIterableType,
boolean isCollectionType,
boolean isMapType,
boolean isImported) |
| Modifier and Type | Method and Description |
|---|---|
Type |
SourceMethod.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 |
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.getResultType() |
Type |
SourceMethod.getReturnType()
Returns the return type of the method
|
Type |
Method.getReturnType()
Returns the return type of the method
|
| Modifier and Type | Method and Description |
|---|---|
static SourceMethod |
SourceMethod.forFactoryMethod(Type declaringMapper,
ExecutableElement executable,
Type returnType,
Types typeUtils) |
static SourceMethod |
SourceMethod.forMethodRequiringImplementation(ExecutableElement executable,
List<Parameter> parameters,
Type returnType,
Map<String,List<Mapping>> mappings,
IterableMapping iterableMapping,
MapMapping mapMapping,
Types typeUtils) |
static SourceMethod |
SourceMethod.forReferencedMethod(Type declaringMapper,
ExecutableElement executable,
List<Parameter> parameters,
Type returnType,
Types typeUtils) |
boolean |
SourceMethod.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 |
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SourceMethod.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 |
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.
|
| 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 |
XmlGregorianCalendarToCalendar.getReturnType() |
Type |
CalendarToXmlGregorianCalendar.getReturnType() |
Type |
XmlGregorianCalendarToDate.getReturnType() |
Type |
XmlGregorianCalendarToString.getReturnType() |
Type |
JaxbElemToValue.getReturnType() |
Type |
ListOfJaxbElemToListOfValue.getReturnType() |
Type |
DateToXmlGregorianCalendar.getReturnType() |
Type |
StringToXmlGregorianCalendar.getReturnType() |
| Modifier and Type | Method and Description |
|---|---|
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> |
XmlGregorianCalendarToString.getImportTypes() |
Set<Type> |
DateToXmlGregorianCalendar.getImportTypes() |
Set<Type> |
StringToXmlGregorianCalendar.getImportTypes() |
| 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 |
ListOfJaxbElemToListOfValue.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.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Type> |
MethodSelectors.getParameterTypes(TypeFactory typeFactory,
List<Parameter> parameters,
Type sourceType,
Type returnType) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Method> |
MethodSelector.getMatchingMethods(SourceMethod mappingMethod,
List<T> methods,
Type parameterType,
Type returnType,
String targetPropertyName)
Selects those methods which match the given types and other criteria
|
<T extends Method> |
MethodSelectors.getMatchingMethods(SourceMethod mappingMethod,
List<T> methods,
Type parameterType,
Type returnType,
String targetPropertyName) |
<T extends Method> |
InheritanceSelector.getMatchingMethods(SourceMethod mappingMethod,
List<T> methods,
Type parameterType,
Type returnType,
String targetPropertyName) |
<T extends Method> |
XmlElementDeclSelector.getMatchingMethods(SourceMethod mappingMethod,
List<T> methods,
Type parameterType,
Type returnType,
String targetPropertyName) |
<T extends Method> |
TypeSelector.getMatchingMethods(SourceMethod mappingMethod,
List<T> methods,
Type parameterType,
Type returnType,
String targetPropertyName) |
static List<Type> |
MethodSelectors.getParameterTypes(TypeFactory typeFactory,
List<Parameter> parameters,
Type sourceType,
Type returnType) |
Copyright © 2012-2014. All Rights Reserved.