../../AspectXLib/car/Car/aspects/CarPost.axNULL, then a recovery action
should be executed.RecoveryAction. The recovery action should be a plug-in component
for the class where the parameter valildity check is performed.
Pointcuts | |
| function | pointerReturningFunctions |
| Points to all functions that return a pointer type | |
| function_decl | pointerReturningFunctionDeclarations |
| Points to all function declarations that return a pointer type | |
| class | classesWithPointerReturningFunctions |
| Points to all classes that contain at least one function declaration which returns a pointer type | |
| unit | unitsWithPointerReturningFunctions |
| Points to all units that contain at least one function which returns a pointer type | |
| return | returnStatements |
|
Points to all return statements inside the function located by pointerReturningFunctions pointcut | |
Advices | |
| end | commentsForCheckedFunctions |
| Adds a comment in front of the function declarartion located by pointcut pointerReturningFunctionDeclarations | |
| end | commentsForClassesWithCheckedFunctions |
| Adds a comment in front of the class that contain classes with functions that returns pointers | |
| before | checkBeforeReturn |
| Adds a check of expresion value that is to be returned | |
| add | addRecoverySupportMethodDeclaration |
| Adds a method setRecoveryAction() to the classes that support recovery | |
| add | addRecoverySupportFieldDeclaration |
| Adds a field variable declaration RecoveryAction to classes that support recovery action | |
| add | addRecoverySupportDefinition |
| Adds the definition of setRecoveryAction() method to appropriate unit | |
| add | addIncludeDecl |
| Adds #include "RecoveryAction | |
| add | addIncludeDef |
| Adds #include "RecoveryAction | |
Triplet: comment end comment
pointerReturningFunctionDeclarations.Local Pointcut: comment (source)
Triplet: comment end comment
Local Pointcut: comment (source)
Triplet: return before codeFragment
Refers to global pointcut: return returnStatements
Triplet: class add declaration
setRecoveryAction() to the classes that support recovery.Refers to global pointcut: class classesWithPointerReturningFunctions
Triplet: class add declaration
RecoveryAction to classes that support recovery action.Refers to global pointcut: class classesWithPointerReturningFunctions
Triplet: unit add definition
setRecoveryAction() method to appropriate unit.Refers to global pointcut: unit unitsWithPointerReturningFunctions
Triplet: unit add include
#include "RecoveryAction.h" to all units where classes with functions returning pointers are defined.Local Pointcut: unit (source)
Triplet: unit add include
#include "RecoveryAction.h" to all units where
functions returning pointer are defined.Refers to global pointcut: unit unitsWithPointerReturningFunctions