Class MethodMatcher

java.lang.Object
org.mapstruct.ap.internal.model.source.MethodMatcher

public class MethodMatcher extends Object
SourceMethodMatcher $8.4 of the JavaLanguage specification describes a method body as such:
 SourceMethodDeclaration: SourceMethodHeader SourceMethodBody
 SourceMethodHeader: SourceMethodModifiers TypeParameters Result SourceMethodDeclarator Throws
 SourceMethodDeclarator: Identifier ( FormalParameterList )

 example <T extends String & Serializable>  T   getResult(? extends T) throws Exception
         \-------------------------------/ \-/            \---------/
               TypeParameters             Result        ParameterList
 
Matches a given method with given ParameterList and Result type obeying the constraints in the TypeParameters block.

For more info on java-generics: http://www.javacodegeeks.com/2011/04/java-generics-quick-tutorial.html http://www.angelikalanger.com/GenericsFAQ/FAQSections/ParameterizedTypes.html

The following situations is not supported / tested:

  1. Multiple bounds were the bound itself is again a generic type.
Author:
Sjaak Derksen