public class MethodMatcher
extends java.lang.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 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.
Copyright © 2012-2014. All Rights Reserved.