Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Pointcut general form

I'm trying to get a better understanding of the various ways that pointcuts can be defined, particularly when using wildcards. I was looking at the Quick Reference PDF and noticed that the definition of the general form for pointcuts seems to be incomplete (or I'm overlooking something). In the section called "Primitive Pointcuts" in the general form section, the following grammar is given (I'm substituting <> for italicized informatino) :

execution(<MethodPat>)

where

<MethodPat>: [<ModifiersPat>] <TypePat> [<TypePat> .] <IdPat>(<TypePat> , ... ) [ throws <ThrowsPat> ]
<TypePat> :  ... type pattern definition

However, I can't find a definition for <MethodPat>, <IdPat> or <ThrowsPat>

I'm also not convinced that the grammar given is accurate. For example, I've seen definitions which look like this:

execution(* *.*(..))

but I can't seem to construct that definition from the given grammar although perhaps what is missing is the definition of IdPat.

Is there a better document which describes the grammar used to parse pointcut definitions?

Thanks.

--
James Howe


Back to the top