| Puma Reference Manual | Puma: Puma::ACAspectInfo Class Reference |
#include <Puma/ACAspectInfo.h>
An aspect declaration is syntactically equal to a C++ class declaration and also parsed like a C++ class. Additionally it contains pointcut and advice declarations.
Public Member Functions | |
| ACAspectInfo (CClassInfo *node) | |
| Construct an ACAspectInfo object from a CClassInfo. | |
| ~ACAspectInfo () | |
| Destroy the aspect info. | |
| CClassInfo * | ClassInfo () const |
| Get the class info of the aspect declaration. | |
| const char * | name () const |
| Get the name of the aspect. | |
| bool | is_abstract () const |
| Return true if the aspect is declared abstract. | |
| int | PointcutInfos () const |
| Return the number of pointcut declarations in the aspect. | |
| ACPointcutInfo * | PointcutInfo (int n) const |
| Get the n-th pointcut declaration of the aspect. | |
| void | add (ACPointcutInfo *p) |
| Add a pointcut info to the aspect. | |
| int | IntroNodes () const |
| Return the number of introduction advices in the aspect. | |
| ACIntroductionInfo * | IntroNode (int n) const |
| Get the n-th introduction advice of the aspect. | |
| void | addIntroNode (CT_AdviceDecl *node, CProtection::Type tp) |
| Add an introduction advice info to the aspect. | |
| int | IntroCount () |
| Increase the introduction advice counter and return the resulting count. | |
| int | AdviceNodes () const |
| Return the number of advice declaration nodes in the aspect. | |
| CT_AdviceDecl * | AdviceNode (int n) const |
| Get the n-th advice declaration node of the aspect. | |
| void | addAdviceNode (CT_AdviceDecl *node) |
| Add an advice declaration node to the aspect info. | |
| int | AdviceCount () |
| Increase the advice declaration counter and return the resulting count. | |
| int | OrderNodes () const |
| Return the number of order advice declaration nodes in the aspect. | |
| CT_AdviceDecl * | OrderNode (int n) const |
| Get the n-th order advice declaration node of the aspect. | |
| void | addOrderNode (CT_AdviceDecl *node) |
| Add an order advice declaration node to the aspect info. | |
| void | aspect_of (CFunctionInfo *a) |
| Set the aspectOf() function declared in the aspect. | |
| CFunctionInfo * | aspect_of () const |
| Get the function info of the aspectOf() function. | |
| Puma::ACAspectInfo::ACAspectInfo | ( | CClassInfo * | node | ) | [inline] |
Construct an ACAspectInfo object from a CClassInfo.
| node | The class info of the aspect declaration. |
| Puma::ACAspectInfo::~ACAspectInfo | ( | ) |
Destroy the aspect info.
| CClassInfo * Puma::ACAspectInfo::ClassInfo | ( | ) | const [inline] |
Get the class info of the aspect declaration.
| const char * Puma::ACAspectInfo::name | ( | ) | const [inline] |
Get the name of the aspect.
| bool Puma::ACAspectInfo::is_abstract | ( | ) | const |
Return true if the aspect is declared abstract.
| int Puma::ACAspectInfo::PointcutInfos | ( | ) | const [inline] |
Return the number of pointcut declarations in the aspect.
| ACPointcutInfo* Puma::ACAspectInfo::PointcutInfo | ( | int | n | ) | const [inline] |
Get the n-th pointcut declaration of the aspect.
| n | The number of the pointcut declaration. |
NULL if n is invalid. | void Puma::ACAspectInfo::add | ( | ACPointcutInfo * | p | ) | [inline] |
Add a pointcut info to the aspect.
| p | The pointcut info. |
| int Puma::ACAspectInfo::IntroNodes | ( | ) | const [inline] |
Return the number of introduction advices in the aspect.
| ACIntroductionInfo* Puma::ACAspectInfo::IntroNode | ( | int | n | ) | const [inline] |
Get the n-th introduction advice of the aspect.
| n | The number of the introduction info. |
NULL if n is invalid. | void Puma::ACAspectInfo::addIntroNode | ( | CT_AdviceDecl * | node, | |
| CProtection::Type | tp | |||
| ) | [inline] |
Add an introduction advice info to the aspect.
| node | The corresponding advice declaration node. | |
| tp | The protection of the advice (public, protected, private). |
| int Puma::ACAspectInfo::IntroCount | ( | ) | [inline] |
Increase the introduction advice counter and return the resulting count.
| int Puma::ACAspectInfo::AdviceNodes | ( | ) | const [inline] |
Return the number of advice declaration nodes in the aspect.
| CT_AdviceDecl* Puma::ACAspectInfo::AdviceNode | ( | int | n | ) | const [inline] |
Get the n-th advice declaration node of the aspect.
| n | The number of the advice declaration. |
NULL if n is invalid. | void Puma::ACAspectInfo::addAdviceNode | ( | CT_AdviceDecl * | node | ) | [inline] |
Add an advice declaration node to the aspect info.
| node | The advice declaration syntax tree node. |
| int Puma::ACAspectInfo::AdviceCount | ( | ) | [inline] |
Increase the advice declaration counter and return the resulting count.
| int Puma::ACAspectInfo::OrderNodes | ( | ) | const [inline] |
Return the number of order advice declaration nodes in the aspect.
| CT_AdviceDecl* Puma::ACAspectInfo::OrderNode | ( | int | n | ) | const [inline] |
Get the n-th order advice declaration node of the aspect.
| n | The number of the advice declaration. |
NULL if n is invalid. | void Puma::ACAspectInfo::addOrderNode | ( | CT_AdviceDecl * | node | ) | [inline] |
Add an order advice declaration node to the aspect info.
| node | The order advice declaration syntax tree node. |
| void Puma::ACAspectInfo::aspect_of | ( | CFunctionInfo * | a | ) | [inline] |
Set the aspectOf() function declared in the aspect.
| a | The function info of the aspectOf() function. |
| CFunctionInfo* Puma::ACAspectInfo::aspect_of | ( | ) | const [inline] |
Get the function info of the aspectOf() function.