public class BcelAdvice extends Advice {
private Test pointcutTest;
private ExposedState exposedState;
+
+ private boolean hasMatchedAtLeastOnce = false;
public BcelAdvice(
AjAttribute.AdviceAttribute attribute,
}
public void implementOn(Shadow s) {
+ hasMatchedAtLeastOnce=true;
BcelShadow shadow = (BcelShadow) s;
if (getKind() == AdviceKind.Before) {
shadow.weaveBefore(this);
}
return ret; //(BcelVar[]) exposedState.vars;
}
+
+ public boolean hasMatchedSomething() {
+ return hasMatchedAtLeastOnce;
+ }
}