../../AspectXLib/car/Car/aspects/CarBeginEnd.axPointcuts | |
| function | anySetFunction |
| Points to all setter methods | |
| function | setIntFunctions |
| Points to setter methods with int paramter | |
| unit | units |
| Point to units that contain setter methods | |
Advices | |
| begin | atBegin |
| Inserts a print instruction at the beginning of the
target method | |
| end | atEnd |
|
Inserts a print instruction at the beginning of the
target method | |
| add | addIncludes |
|
Inserts #include and namespace instructions to the unit (file) | |
int paramter. These method are
recognized as methods that contain substring "set" in the method name and
have formal paramter of type int.Triplet: function begin codeFragment
int parameter.
The names of the method, class and parameter are accessed using "dollar variables".
Refers to global pointcut: function setIntFunctions
Triplet: function end codeFragment
Refers to global pointcut: function anySetFunction
Triplet: unit add include
#include and namespace instructions to the unit (file). Both instructions
are necessary to use the output stream. The advice adds
two lines of code at the beginning of unit: #include <iostream>
and using namespace std;
Refers to global pointcut: unit units