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)
Constructor and Description |
---|
MethodNameMatcher(String methodName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
matches(Method method)
Determines is the method meets the selection criteria.
|
public MethodNameMatcher(String methodName)
public boolean matches(Method method)
MethodMatcher
matches
in interface MethodMatcher
method
- The method to testCopyright © 2002-2016 P6Spy. All Rights Reserved.