public class MethodRetrievalProcessor extends Object implements ModelElementProcessor<Void,List<SourceMethod>>
ModelElementProcessor
which retrieves a list of SourceMethod
s
representing all the mapping methods of the given bean mapper type as well as
all referenced mapper methods declared by other mappers referenced by the
current mapper.ModelElementProcessor.ProcessorContext
Constructor and Description |
---|
MethodRetrievalProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority value of this processor which must be between 1
(highest priority) and 10000 (lowest priority).
|
List<SourceMethod> |
process(ModelElementProcessor.ProcessorContext context,
TypeElement mapperTypeElement,
Void sourceModel)
Processes the given source element, representing a Java bean mapper in
one form or another.
|
public List<SourceMethod> process(ModelElementProcessor.ProcessorContext context, TypeElement mapperTypeElement, Void sourceModel)
ModelElementProcessor
process
in interface ModelElementProcessor<Void,List<SourceMethod>>
context
- Context providing common infrastructure objects.mapperTypeElement
- The original type element from which the given mapper object
is derived.sourceModel
- The current representation of the bean mapper. Never
null
(the very first processor receives the original
type element).null
except for the very last processor which
generates the resulting Java source file.public int getPriority()
ModelElementProcessor
Mapper
model must have a priority > 1000.getPriority
in interface ModelElementProcessor<Void,List<SourceMethod>>
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.