Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] declare error & type pattern?

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


Back to the top