O'Reilly logo

Eclipse AspectJ: Aspect-Oriented Programming with AspectJ and the Eclipse AspectJ Development Tools by Matthew Webster, George Harley, Andy Clement, Adrian Colyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. AspectJ Language Quick Reference

Aspect Declaration

[ privileged ] [ Modifiers ] aspect id
[extends Type] [implements TypeList]
[PerClause] { Body }

Table B.1. Per Clauses

Per Clause

Meaning

[issingleton()]

One aspect instance.

perthis(pointcut-expression)

One aspect instance for each unique object bound to this at matched join points.

Implicit condition: && this (myObject)

pertarget(pointcut-expression)

One aspect instance for each unique object bound to target at matched join points.

Implicit condition: && target (myTargetObject)

percflow(pointcut-expression)

One aspect instance for each control flow begun at a matched join point.

Implicit condition: && cflow (pointcut expression)

percflowbelow(pointcut-expression)

One aspect instance for each ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required