Semantic information about an AspectC++ 'advice' declaration.
More...
#include <Puma/ACAdviceInfo.h>
List of all members.
Detailed Description
Semantic information about an AspectC++ 'advice' declaration.
An advice is part of an aspect declaration.
Member Enumeration Documentation
The three advice types: before, around, and after advice.
- Enumerator:
-
Constructor & Destructor Documentation
Puma::ACAdviceInfo::ACAdviceInfo |
( |
int |
n | ) |
|
|
inline |
Construct an advice info object.
Also constructs the internal name of an advice.
- Parameters:
-
n | A consecutive number used for the unique internal name of the advice. |
Member Function Documentation
Set the aspect containing the advice.
- Parameters:
-
Get the aspect containing the advice.
Set the syntax tree node of the declaration of the advice.
- Parameters:
-
ad | The advice declaration syntax tree node. |
Get the advice declaration syntax tree node.
Set the syntax tree node of the definition of the advice.
- Parameters:
-
ad | The advice definition syntax tree node. |
Get the advice definition syntax tree node.
Get the function info of the advice.
Advice declarations are syntactically realized as function declaration.
bool Puma::ACAdviceInfo::is_inherited |
( |
| ) |
|
|
inline |
Return true if the advice is inherited from another aspect.
void Puma::ACAdviceInfo::is_inherited |
( |
bool |
i | ) |
|
|
inline |
Set the inherited state of the advice info.
- Parameters:
-
i | true if the advice is inherited from another aspect. |
const char* Puma::ACAdviceInfo::name |
( |
| ) |
|
|
inline |
Get the internal name of the advice.
Set the parent advice.
The parent advice is the advice in the base aspect from which this advice inherits.
- Parameters:
-
p | The advice info of the parent advice. |
Get the parent advice info.
If an advice is inherited from another aspect, this method returns the info of the corresponding advice of the base aspect.
- Returns:
- The advice info or
NULL
if advice is not inherited.
If an advice is inherited, this method returns the info of the advice of the aspect first defining the advice.
- Returns:
- The advice info or this if the advice is not inherited.
Get the type of the advice.
bool Puma::ACAdviceInfo::uses_aspectOf |
( |
| ) |
const |
|
inline |
Return true if the advice uses the aspectOf() function.
void Puma::ACAdviceInfo::uses_aspectOf |
( |
bool |
u | ) |
|
|
inline |
Set the state whether the advice uses the aspectOf() function.
- Parameters:
-
u | true if the advice uses the aspectOf() function. |