| Package | Description |
|---|---|
| org.mapstruct.ap.model |
Meta-model of mapper types, their methods, mappings between properties etc.
|
| org.mapstruct.ap.model.assignment |
Meta-model of assignments.
|
| 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.
|
| org.mapstruct.ap.processor.creation |
Contains all helper classes for the
MapperCreationProcessor |
| Constructor and Description |
|---|
BeanMappingMethod(SourceMethod method,
java.util.List<PropertyMapping> propertyMappings,
FactoryMethod factoryMethod) |
IterableMappingMethod(SourceMethod method,
Assignment parameterAssignment,
FactoryMethod factoryMethod) |
MapMappingMethod(SourceMethod method,
Assignment keyAssignment,
Assignment valueAssignment,
FactoryMethod factoryMethod) |
| Modifier and Type | Method and Description |
|---|---|
static FactoryMethod |
AssignmentFactory.createFactory(SourceMethod method,
MapperReference declaringMapper) |
static Assignment |
AssignmentFactory.createMethodReference(SourceMethod method,
MapperReference declaringMapper,
Type targetType) |
| Constructor and Description |
|---|
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,
javax.lang.model.element.ExecutableElement executable,
Type returnType,
java.util.List<Type> exceptionTypes,
javax.lang.model.util.Types typeUtils) |
static SourceMethod |
SourceMethod.forMethodRequiringImplementation(javax.lang.model.element.ExecutableElement executable,
java.util.List<Parameter> parameters,
Type returnType,
java.util.List<Type> exceptionTypes,
java.util.Map<java.lang.String,java.util.List<Mapping>> mappings,
IterableMapping iterableMapping,
MapMapping mapMapping,
javax.lang.model.util.Types typeUtils) |
static SourceMethod |
SourceMethod.forReferencedMethod(Type declaringMapper,
javax.lang.model.element.ExecutableElement executable,
java.util.List<Parameter> parameters,
Type returnType,
java.util.List<Type> exceptionTypes,
javax.lang.model.util.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,
java.util.List<T> methods,
Type parameterType,
Type returnType,
java.lang.String targetPropertyName)
Selects those methods which match the given types and other criteria
|
<T extends Method> |
MethodSelectors.getMatchingMethods(SourceMethod mappingMethod,
java.util.List<T> methods,
Type parameterType,
Type returnType,
java.lang.String targetPropertyName) |
<T extends Method> |
InheritanceSelector.getMatchingMethods(SourceMethod mappingMethod,
java.util.List<T> methods,
Type parameterType,
Type returnType,
java.lang.String targetPropertyName) |
<T extends Method> |
XmlElementDeclSelector.getMatchingMethods(SourceMethod mappingMethod,
java.util.List<T> methods,
Type parameterType,
Type returnType,
java.lang.String targetPropertyName) |
<T extends Method> |
TypeSelector.getMatchingMethods(SourceMethod mappingMethod,
java.util.List<T> methods,
Type parameterType,
Type returnType,
java.lang.String targetPropertyName) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SourceMethod> |
MethodRetrievalProcessor.process(ModelElementProcessor.ProcessorContext context,
javax.lang.model.element.TypeElement mapperTypeElement,
java.lang.Void sourceModel) |
| Modifier and Type | Method and Description |
|---|---|
Mapper |
MapperCreationProcessor.process(ModelElementProcessor.ProcessorContext context,
javax.lang.model.element.TypeElement mapperTypeElement,
java.util.List<SourceMethod> sourceModel) |
| Modifier and Type | Method and Description |
|---|---|
Assignment |
MappingResolver.getTargetAssignment(SourceMethod mappingMethod,
java.lang.String mappedElement,
java.util.List<MapperReference> mapperReferences,
java.util.List<SourceMethod> methods,
Type sourceType,
Type targetType,
java.lang.String targetPropertyName,
java.lang.String dateFormat,
java.lang.String sourceReference)
returns a parameter assignment
|
| Modifier and Type | Method and Description |
|---|---|
Assignment |
MappingResolver.getTargetAssignment(SourceMethod mappingMethod,
java.lang.String mappedElement,
java.util.List<MapperReference> mapperReferences,
java.util.List<SourceMethod> methods,
Type sourceType,
Type targetType,
java.lang.String targetPropertyName,
java.lang.String dateFormat,
java.lang.String sourceReference)
returns a parameter assignment
|
Copyright © 2012-2014. All Rights Reserved.