| java.lang.Object org.mockejb.interceptor.PointcutPair
PointcutPair | public class PointcutPair implements Pointcut(Code) | | Provides a way to create conditional expressions from pointcuts.
author: Alexander Ananiev |
PointcutPair | PointcutPair(Pointcut pointcut1, Pointcut pointcut2)(Code) | | Creates a new instance of PointcutPair
Parameters: pointcut1 - first pointcut Parameters: pointcut2 - second pointcut |
PointcutPair | PointcutPair(Pointcut pointcut1, Pointcut pointcut2, boolean isOr)(Code) | | Creates a new instance of PointcutPair
Parameters: pointcut1 - first pointcut Parameters: pointcut2 - second pointcut Parameters: isOr - if true, use OR instead of AND |
and | public static PointcutPair and(Pointcut pointcut1, Pointcut pointcut2)(Code) | | Creates a new instance of PointcutPair.
AND condition will be used by "matchesJointpoint".
Parameters: pointcut1 - first pointcut Parameters: pointcut2 - second pointcut |
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 both poincuts match
true if the provided method should be intercepted |
or | public static PointcutPair or(Pointcut pointcut1, Pointcut pointcut2)(Code) | | Creates a new instance of PointcutPair.
OR condition will be used by "matchesJointpoint".
Parameters: pointcut1 - first pointcut Parameters: pointcut2 - second pointcut |
|
|