MethodMatcher implementation for a union of two given MethodMatchers.
| Method from org.springframework.aop.support.MethodMatchers$UnionMethodMatcher Detail: |
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof UnionMethodMatcher)) {
return false;
}
UnionMethodMatcher that = (UnionMethodMatcher) obj;
return (this.mm1.equals(that.mm1) && this.mm2.equals(that.mm2));
}
|
public int hashCode() {
int hashCode = 17;
hashCode = 37 * hashCode + this.mm1.hashCode();
hashCode = 37 * hashCode + this.mm2.hashCode();
return hashCode;
}
|
public boolean isRuntime() {
return this.mm1.isRuntime() || this.mm2.isRuntime();
}
|
public boolean matches(Method method,
Class targetClass) {
return (matchesClass1(targetClass) && this.mm1.matches(method, targetClass)) ||
(matchesClass2(targetClass) && this.mm2.matches(method, targetClass));
}
|
public boolean matches(Method method,
Class targetClass,
boolean hasIntroductions) {
return (matchesClass1(targetClass) && MethodMatchers.matches(this.mm1, method, targetClass, hasIntroductions)) ||
(matchesClass2(targetClass) && MethodMatchers.matches(this.mm2, method, targetClass, hasIntroductions));
}
|
public boolean matches(Method method,
Class targetClass,
Object[] args) {
return this.mm1.matches(method, targetClass, args) || this.mm2.matches(method, targetClass, args);
}
|
protected boolean matchesClass1(Class targetClass) {
return true;
}
|
protected boolean matchesClass2(Class targetClass) {
return true;
}
|