public class MethodMatcher extends Object
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 ParameterListMatches 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:
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.