| Package | Description |
|---|---|
| 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.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.
|
| org.mapstruct.ap.processor |
Contains model processors which perform tasks such as retrieving mapping methods, creating a model representation
and writing the model into Java source files.
|
| Constructor and Description |
|---|
BeanMappingMethod(SourceMethod method,
List<PropertyMapping> propertyMappings,
MethodReference factoryMethod) |
IterableMappingMethod(SourceMethod method,
MethodReference elementMappingMethod,
TypeConversion conversion,
MethodReference factoryMethod) |
MapMappingMethod(SourceMethod method,
MethodReference keyMappingMethod,
TypeConversion keyConversion,
MethodReference valueMappingMethod,
TypeConversion valueConversion,
MethodReference factoryMethod) |
MethodReference(SourceMethod method,
MapperReference declaringMapper,
Type targetType)
Creates a new reference to the given 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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SourceMethod.reverses(SourceMethod method) |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
List<SourceMethod> |
MethodRetrievalProcessor.process(ModelElementProcessor.ProcessorContext context,
TypeElement mapperTypeElement,
Void sourceModel) |
| Modifier and Type | Method and Description |
|---|---|
Mapper |
MapperCreationProcessor.process(ModelElementProcessor.ProcessorContext context,
TypeElement mapperTypeElement,
List<SourceMethod> sourceModel) |
Copyright © 2012-2014. All Rights Reserved.