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