/** * Is this method on an introduced interface? * @param mi the method invocation * @return whether the invoked method is on an introduced interface */ protected final boolean isMethodOnIntroducedInterface(MethodInvocation mi) { Boolean rememberedResult = this.rememberedMethods.get(mi.getMethod()); if (rememberedResult != null) { return rememberedResult; } else { // Work it out and cache it. boolean result = implementsInterface(mi.getMethod().getDeclaringClass()); this.rememberedMethods.put(mi.getMethod(), result); return result; } }
/** * Is this method on an introduced interface? * @param mi method invocation * @return whether the method is on an introduced interface */ protected final boolean isMethodOnIntroducedInterface(MethodInvocation mi) { return implementsInterface(mi.getMethod().getDeclaringClass()); }
/** * Is this method on an introduced interface? * @param mi the method invocation * @return whether the invoked method is on an introduced interface */ protected final boolean isMethodOnIntroducedInterface(MethodInvocation mi) { Boolean rememberedResult = this.rememberedMethods.get(mi.getMethod()); if (rememberedResult != null) { return rememberedResult; } else { // Work it out and cache it. boolean result = implementsInterface(mi.getMethod().getDeclaringClass()); this.rememberedMethods.put(mi.getMethod(), result); return result; } }
/** * Is this method on an introduced interface? * @param mi the method invocation * @return whether the invoked method is on an introduced interface */ protected final boolean isMethodOnIntroducedInterface(MethodInvocation mi) { Boolean rememberedResult = this.rememberedMethods.get(mi.getMethod()); if (rememberedResult != null) { return rememberedResult; } else { // Work it out and cache it. boolean result = implementsInterface(mi.getMethod().getDeclaringClass()); this.rememberedMethods.put(mi.getMethod(), result); return result; } }