Next: JAVA mode
Up: Lexical Structure
Previous: Lexical Structure
From a conceptual point of view we can think of an AspectJ program
consisiting of nested lexical scopes. There are four kinds of lexical
scopes which we refer to by the mode names, JAVA, ASPECT,
POINTCUT and POINTCUTIFEXPR.
Figure 1 shows an example of all four kinds of scopes
and each are discussed in more detail in the subsequent subsections.
AspectJ code with nested lexical scopes