Is there a type expression meaning "true" or "false"? What I'd like is to
be able to use the primitive literal values "true" & "false" in a type
expression. I'd like to replace the use of Bool in the example below with
the literals.
public final aspect Bool {
public static final pointcut true_(): within(*);
public static final pointcut false_(): !true_();
}
=====
public abstract aspect Super {
public abstract pointcut qualifyingUsage();
public pointcut warnOnBadUseOfAnnotation(): Bool.false_();
declare warning:
warnOnBadUseOfAnnotation() && qualifyingUsage():
"incorrect usage of annotation";
}
=====
public aspect Sub {
public warnOnBadUseOfAnnotation(): Bool.true_();
public pointcut qualifyingUsage():
@NotSerializable Serializable+;
}
-matthew
--
mailto:[email protected] <[email protected]>
skype:matthewadams12
googletalk:[email protected]
http://matthewadams.me
http://www.linkedin.com/in/matthewadams
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users