[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] declare error & type pattern?
|
- From: Matthew Adams <matthew@xxxxxxxxxxxxxxx>
- Date: Fri, 25 Sep 2009 14:20:43 -0700
- Delivered-to: aspectj-users@eclipse.org
Currently, declare error only accepts a pointcut expression. It would
be nice if it also accepted a type pattern.
For example:
declare error: (@Endable *) && (!hasmethod(protected * end(Date)) :
"no protected end(Date) method";
It's kind of like compile-time enforcement of interface methods, only
I want it to support non-public methods.
How can I do this at compile time without having declare error
enhanced to support type patterns?
Thanks,
Matthew
--
mailto:matthew@xxxxxxxxxxxxxxx
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:matthewadams12@xxxxxxxxx
msn:matthew@xxxxxxxxxxxxxxx
http://matthewadams.me
http://www.linkedin.com/in/matthewadams