public class MethodNameMatcher extends Object implements MethodMatcher
Example #1:
new MethodNameMatcher("testMethod") would match the following methods.
testMethod()
testMethod(int p1, String p2)
testMethod(int p1, String p2, String p3)
However, it would not match the following method.
TestMethod(int p1)
Example #2:
new MethodNameMatcher("testM*") would match the following methods.
testMethod()
testMethodA(int p1, String p2)
testMethodB(int p1, String p2, String p3)
However, it would not match the following method.
TestMethod(int p1)
public MethodNameMatcher(String methodName)
public boolean matches(Method method)
MethodMatcher
matches
in interface MethodMatcher
method
- The method to testCopyright © 2002-2015 P6Spy. All Rights Reserved.