Flexible Pointcut Implementation: An Interpreted Approach - Archive ouverte HAL Access content directly
Conference Papers Year : 2009

Flexible Pointcut Implementation: An Interpreted Approach

(1, 2) , (1, 2)


One of the main elements of an Aspect-Oriented Programming (AOP) language or framework is its pointcut language. A pointcut is a predicate which selects program execution points and determines at which points the execution should be affected by an aspect. Experimenting with AspectJ shows that two basic primitive pointcuts, call and execution, dealing with method invoca- tion from the caller and callee standpoints, respectively, lead to confusion. This is due to a subtle interplay between the use of static and dynamic types to select execution points, dynamic lookup, and the expectation to easily select the caller and callee execution points related to the same invocation. As a result, alternative semantics have been proposed but have remained paper design. In this article, we reconsider these various semantics in a practical way by implementing them using CALI, our Common Aspect Language Interpreter. This framework reuses both Java as a base language and AspectJ as a way to select the program execution points of interest. An additional interpretation layer can then be used to prototype interesting AOP variants in a full-blown environment. The paper illustrates the benefits of applying such a setting to the case of the call and execution pointcuts. We show that alternative semantics can be implemented very easily and exercised in the context of AspectJ without resorting to complex compiler technology.
Not file

Dates and versions

inria-00460796 , version 1 (02-03-2010)


  • HAL Id : inria-00460796 , version 1


Ali Assaf, Jacques Noyé. Flexible Pointcut Implementation: An Interpreted Approach. Langages et Modèles à Objets (LMO 2009), Olivier Zendra, Mar 2009, Nancy, France. pp.45-60. ⟨inria-00460796⟩
105 View
0 Download


Gmail Facebook Twitter LinkedIn More