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 ...

Get Eclipse AspectJ: Aspect-Oriented Programming with AspectJ and the Eclipse AspectJ Development Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.