Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Pattern syntax grammar specification for AspectJ, does it exist ?

Hi,

The pattern syntax for AspectJ is given at the bottom of this webpage (see also below):

http://eclipse.org/aspectj/doc/released/progguide/semantics-pointcuts.html

However, I was unable to find an explanation for this grammar. Where can I find that ?

For example it is not clear to me what the following means (taken from the last line from the Pattern Summary):
JavaModifier  ...

Pattern Summary

Here is a summary of the pattern syntax used in AspectJ:

MethodPattern = 
  [ModifiersPattern] TypePattern 
        [TypePattern . ] IdPattern (TypePattern | ".." , ... ) 
        [ throws ThrowsPattern ]
ConstructorPattern = 
  [ModifiersPattern ] 
        [TypePattern . ] new (TypePattern | ".." , ...) 
        [ throws ThrowsPattern ]
FieldPattern = 
  [ModifiersPattern] TypePattern [TypePattern . ] IdPattern
ThrowsPattern = 
  [ ! ] TypePattern , ...
TypePattern = 
    IdPattern [ + ] [ [] ... ]
    | ! TypePattern
    | TypePattern && TypePattern
    | TypePattern || TypePattern
    | ( TypePattern )  
IdPattern =
  Sequence of characters, possibly with special * and .. wildcards
ModifiersPattern =
  [ ! ] JavaModifier  ...
Cheers

Jozsef

Back to the top