Class ParameterProvidedMethods
java.lang.Object
org.mapstruct.ap.internal.model.source.ParameterProvidedMethods
Provides access to the
SourceMethods that are provided by Context parameters of a
Method and maintains the relationship between those methods and their originating parameter.- Author:
- Andreas Gudian
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ParameterProvidedMethodsempty()getAllProvidedMethodsInParameterOrder(List<Parameter> orderedParameters) getParameterForProvidedMethod(Method method) booleanisEmpty()
-
Method Details
-
getAllProvidedMethodsInParameterOrder
- Parameters:
orderedParameters- The parameters of which the provided methods are to be returned.- Returns:
- The methods provided by the given parameters in the order as defined by the parameter list, with the methods of each parameter ordered based on their definition in that parameter's type.
-
getParameterForProvidedMethod
- Parameters:
method- The method for which the defining parameter is to be returned.- Returns:
- The Parameter on which's type the provided method is defined, or
nullif the method was not defined on one of the tracked parameters.
-
isEmpty
public boolean isEmpty()- Returns:
true, if no methods are provided by the tracked parameters or no parameters are tracked at all.
-
builder
-
empty
-