Package | Description |
---|---|
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 |
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
|
org.mapstruct.ap.internal.util |
Several helper types dealing with collection types, option management etc.
|
org.mapstruct.ap.internal.util.accessor |
Modifier and Type | Method and Description |
---|---|
static PropertyMapping.TargetWriteAccessorType |
PropertyMapping.TargetWriteAccessorType.of(Accessor accessor) |
CollectionAssignmentBuilder |
CollectionAssignmentBuilder.targetReadAccessor(Accessor targetReadAccessor) |
Modifier and Type | Method and Description |
---|---|
Map<String,Accessor> |
Type.getPropertyReadAccessors()
getPropertyReadAccessors
|
Map<String,Accessor> |
Type.getPropertyWriteAccessors(org.mapstruct.ap.internal.prism.CollectionMappingStrategyPrism cmStrategy)
getPropertyWriteAccessors returns a map of the write accessors according to the CollectionMappingStrategy.
|
Modifier and Type | Method and Description |
---|---|
List<Parameter> |
TypeFactory.getParameters(DeclaredType includingType,
Accessor accessor) |
Type |
TypeFactory.getReturnType(DeclaredType includingType,
Accessor accessor) |
Parameter |
TypeFactory.getSingleParameter(DeclaredType includingType,
Accessor method) |
Modifier and Type | Method and Description |
---|---|
Accessor |
PropertyEntry.getReadAccessor() |
Accessor |
PropertyEntry.getWriteAccessor() |
Modifier and Type | Method and Description |
---|---|
static PropertyEntry |
PropertyEntry.forSourceReference(String name,
Accessor readAccessor,
ExecutableElementAccessor presenceChecker,
Type type)
Constructor used to create
SourceReference property entries from a mapping |
static PropertyEntry |
PropertyEntry.forTargetReference(String[] fullName,
Accessor readAccessor,
Accessor writeAccessor,
Type type)
Constructor used to create
TargetReference property entries |
SourceReference.BuilderFromProperty |
SourceReference.BuilderFromProperty.readAccessor(Accessor readAccessor) |
Modifier and Type | Method and Description |
---|---|
static List<Accessor> |
Filters.adderMethodsIn(List<Accessor> elements) |
static List<Accessor> |
Filters.fieldsIn(List<Accessor> accessors) |
static List<Accessor> |
Executables.getAllEnclosedAccessors(Elements elementUtils,
TypeElement element)
Finds all executable elements/variable elements within the given type element, including executable/variable
elements defined in super classes and implemented interfaces and including the fields in the .
|
static List<Accessor> |
Filters.getterMethodsIn(List<Accessor> elements) |
static List<Accessor> |
Filters.setterMethodsIn(List<Accessor> elements) |
Modifier and Type | Method and Description |
---|---|
static String |
Executables.getElementNameForAdder(Accessor adderMethod) |
static String |
Executables.getPropertyName(Accessor accessor) |
static boolean |
Executables.isAdderMethod(Accessor method) |
static boolean |
Executables.isFieldAccessor(Accessor accessor)
An
Accessor is a field accessor, if it doesn't have an executable element, is public and it is not
static. |
static boolean |
Executables.isFinal(Accessor accessor) |
static boolean |
Executables.isGetterMethod(Accessor method) |
static boolean |
Executables.isPresenceCheckMethod(Accessor method) |
static boolean |
Executables.isSetterMethod(Accessor method) |
static ValueProvider |
ValueProvider.of(Accessor accessor)
Creates a
ValueProvider from the provided accessor . |
Modifier and Type | Method and Description |
---|---|
static List<Accessor> |
Filters.adderMethodsIn(List<Accessor> elements) |
static List<Accessor> |
Filters.fieldsIn(List<Accessor> accessors) |
static List<Accessor> |
Filters.getterMethodsIn(List<Accessor> elements) |
static List<ExecutableElementAccessor> |
Filters.presenceCheckMethodsIn(List<Accessor> elements) |
static List<Accessor> |
Filters.setterMethodsIn(List<Accessor> elements) |
Modifier and Type | Class and Description |
---|---|
class |
ExecutableElementAccessor
An
Accessor that wraps an ExecutableElement . |
class |
VariableElementAccessor
An
Accessor that wraps a VariableElement . |
Copyright © 2012-2017 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.