| 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.source |
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
|
| org.mapstruct.ap.util |
Several helper types dealing with collection types, option management etc.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
DefaultConversionContext.getTargetType() |
Type |
ConversionProvider.Context.getTargetType()
Returns the target type of this conversion.
|
| Modifier and Type | Method and Description |
|---|---|
ConversionProvider |
Conversions.getConversion(Type sourceType,
Type targetType) |
| Constructor and Description |
|---|
DefaultConversionContext(TypeFactory typeFactory,
Type targetType,
String format) |
| Modifier and Type | Method and Description |
|---|---|
Type |
MappingMethodReference.getDeclaringMapper() |
Type |
Type.getImplementationType()
Returns the implementation type to be instantiated in case this type is an interface iterable, collection or map
type.
|
Type |
MapperReference.getMapperType() |
Type |
DefaultMapperReference.getMapperType() |
Type |
AnnotationMapperReference.getMapperType() |
Type |
MappingMethod.getResultType() |
Type |
MappingMethod.getReturnType() |
Type |
PropertyMapping.getSourceType() |
Type |
PropertyMapping.getTargetType() |
Type |
Parameter.getType() |
Type |
Annotation.getType() |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
TypeConversion.getExceptionTypes() |
Set<Type> |
Parameter.getImportTypes() |
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> |
TypeConversion.getImportTypes() |
Set<Type> |
BeanMappingMethod.getImportTypes() |
Set<Type> |
PropertyMapping.getImportTypes() |
Set<Type> |
IterableMappingMethod.getImportTypes() |
Set<Type> |
Annotation.getImportTypes() |
Set<Type> |
DefaultMapperReference.getImportTypes() |
SortedSet<Type> |
Mapper.getImportTypes() |
Set<Type> |
Type.getImportTypes() |
Set<Type> |
AnnotationMapperReference.getImportTypes() |
Set<Type> |
MapMappingMethod.getImportTypes() |
Set<Type> |
MappingMethod.getImportTypes() |
Set<Type> |
MappingMethodReference.getReferencedTypes() |
List<Type> |
Type.getTypeParameters() |
| Modifier and Type | Method and Description |
|---|---|
int |
Type.compareTo(Type o) |
boolean |
Type.isAssignableTo(Type other)
Whether this type is assignable to the given other type.
|
| Constructor and Description |
|---|
Annotation(Type type) |
AnnotationMapperReference(Annotation annotation,
Type type) |
DefaultMapperReference(Type type) |
Parameter(String name,
Type type) |
Parameter(String name,
Type type,
boolean mappingTarget) |
PropertyMapping(String sourceBeanName,
String sourceName,
String sourceAccessorName,
Type sourceType,
String targetName,
String targetAccessorName,
Type targetType,
MappingMethodReference mappingMethod,
TypeConversion conversion) |
Type(TypeMirror typeMirror,
List<Type> typeParameters,
Type implementationType,
boolean isIterableType,
boolean isCollectionType,
boolean isMapType,
Types typeUtils,
Elements elementUtils) |
| Constructor and Description |
|---|
Type(TypeMirror typeMirror,
List<Type> typeParameters,
Type implementationType,
boolean isIterableType,
boolean isCollectionType,
boolean isMapType,
Types typeUtils,
Elements elementUtils) |
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 |
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 |
Method.getResultType() |
Type |
Method.getReturnType() |
| Modifier and Type | Method and Description |
|---|---|
static Method |
Method.forMethodRequiringImplementation(ExecutableElement executable,
List<Parameter> parameters,
Type returnType,
Map<String,Mapping> mappings,
IterableMapping iterableMapping,
MapMapping mapMapping) |
static Method |
Method.forReferencedMethod(Type declaringMapper,
ExecutableElement executable,
List<Parameter> parameters,
Type returnType) |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeFactory.getType(Class<?> type) |
Type |
TypeFactory.getType(String canonicalName) |
Type |
TypeFactory.getType(TypeElement typeElement) |
Type |
TypeFactory.getType(TypeMirror mirror) |
Type |
Executables.retrieveReturnType(ExecutableElement method) |
Copyright © 2012-2013. All Rights Reserved.