Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Access-modifier pattern for package visibility

Hello,

According to [i] the method modifier pattern has the following syntax:

MethodModifiersPattern := '!'? MethodModifier MethodModifiersPattern*
MethodModifier := 'public' | 'private' | 'protected' | 'static' | 
                                  'synchronized' | 'final' 

So "public protected" would be perfectly valid. As I understand it, all
modifiers are anded together, thus "public protected" would lead to an
empty result set. Right?
Is there any way to specifiy, that there must be no specifier (i.e. for
methods with package visibility)? 
Would this be done by: "!public !private !protected"?

Thanks Benjamin

[1]
http://dev.eclipse.org/viewcvs/indextech.cgi/*checkout*/aspectj-home/doc/ajdk15notebook/printable.html?rev=HEAD&content-type=text/html



Back to the top