| |
|
| java.lang.Object org.mockejb.interceptor.MethodPatternPointcut
MethodPatternPointcut | public class MethodPatternPointcut implements Pointcut(Code) | | 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)"
author: Alexander Ananiev |
Method Summary | |
public boolean | equals(Object obj) Returns true if the given object is of the same type and
it has the same pattern. | public int | hashCode() | public boolean | matchesJointpoint(Method method) Tests if the string representation of the given method
matches the pattern. |
MethodPatternPointcut | public MethodPatternPointcut(String regexpPattern)(Code) | | Creates a new instance of MethodPatternPoincut
Parameters: regexpPattern - regexp pattern that will be matched against the string representation of the method |
equals | public boolean equals(Object obj)(Code) | | Returns true if the given object is of the same type and
it has the same pattern.
|
hashCode | public int hashCode()(Code) | | |
matchesJointpoint | public boolean matchesJointpoint(Method method)(Code) | | Tests if the string representation of the given method
matches the pattern.
true if the provided method should be intercepted |
|
|
|