concept anonymous pointcut in category aspectj
appears as: nonymous pointcuts, n anonymous pointcut, onymous pointcut, The onymous pointcut, Anonymous pointcuts

This is an excerpt from Manning's book AspectJ in Action, Second Edition.
You define an anonymous pointcut at the point of its usage. Because you can’t reuse such pointcuts, you should avoid using them when the pointcut code is complicated.
You can specify anonymous pointcuts as a part of advice. For example, advice may use an anonymous pointcut as follows:
before() : call(* Account.*(..)) { ... advice body }You can also use an anonymous pointcut as part of another pointcut. For example, the following pointcut uses an anonymous within() pointcut to limit the call join points selected by accountOperation() made from classes with banking as the root package:
Figure 4.5. Passing an executing object and an argument captured by a named pointcut. This code snippet is functionally equivalent to figure 4.4 but uses a named pointcut. For the advice to access the join point’s context, the pointcut must collect the context, as opposed to the advice collecting the context when using anonymous pointcuts.
![]()