|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockejb.interceptor.MethodPatternPointcut
Tests if the string representation of the given method matches the regexp. This pointcut uses "toString" representation of the method and then checks if it contains the regexp given to the constructor. Example of string representation: "public boolean java.lang.Object.equals(java.lang.Object)"
Constructor Summary | |
MethodPatternPointcut(java.lang.String regexpPattern)
Creates a new instance of MethodPatternPoincut |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if the given object is of the same type and it has the same pattern. |
int |
hashCode()
|
boolean |
matchesJointpoint(java.lang.reflect.Method method)
Tests if the string representation of the given method matches the pattern. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodPatternPointcut(java.lang.String regexpPattern)
regexpPattern
- regexp pattern that will be matched against the
string representation of the methodMethod Detail |
public boolean matchesJointpoint(java.lang.reflect.Method method)
matchesJointpoint
in interface Pointcut
method
- method being invoked
public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |