protected AjAttribute.AdviceAttribute attribute;
protected transient AdviceKind kind; // alias for attribute.getKind()
protected Member signature;
+ private boolean isAnnotationStyle;
// not necessarily declaring aspect, this is a semantics change from 1.0
protected ResolvedType concreteAspect; // null until after concretize
public Advice(AjAttribute.AdviceAttribute attribute, Pointcut pointcut, Member signature) {
super(pointcut, attribute.getStart(), attribute.getEnd(), attribute.getSourceContext(), ShadowMungerAdvice);
this.attribute = attribute;
+ this.isAnnotationStyle = signature != null && !signature.getName().startsWith("ajc$");
this.kind = attribute.getKind(); // alias
this.signature = signature;
if (signature != null) {
start = lexicalPosition;
}
+ public boolean isAnnotationStyle() {
+ return isAnnotationStyle;
+ }
+
public ResolvedType getConcreteAspect() {
return concreteAspect;
}