AllFunctionBeginCodeFragment Aspect
[FunctionTests Group]

This aspect is defined in file: ../../AspectXTestSuite/functions/FunctionWeavingTests/aspects/allFunctionBeginCodeFragment.ax

Aspect Description

This aspect tests weaving rule function_begin_codeFragment. Besides the weaving rule it also tests various pointcuts.
Author:
O. Rohlik

Pointcuts


Advices

beginallFunctions
  This advice inserts a single line comment to all functions
begingivenFunctionsInAllClasses
  This advice inserts a single line comment to all methods with name fOneParameter
beginallFunctionsOfGivenClass
  This advice inserts a single line comment to all methods of class Base
beginaFunctionOfGivenClass
  This advice inserts a single line comment to method fOneParameter of class Base
beginintReturnValue
  This advice inserts a single line comment to all methods that returns type int
beginpointerReturnValue
  This advice inserts a single line comment to all methods that returns pointer

Pointcut Documentation


Advice Documentation

begin allFunctions (source)

Triplet: function begin codeFragment

This advice inserts a single line comment to all functions.

Local Pointcut: function (source)

begin givenFunctionsInAllClasses (source)

Triplet: function begin codeFragment

This advice inserts a single line comment to all methods with name fOneParameter.

Local Pointcut: function (source)

begin allFunctionsOfGivenClass (source)

Triplet: function begin codeFragment

This advice inserts a single line comment to all methods of class Base.

Local Pointcut: function (source)

begin aFunctionOfGivenClass (source)

Triplet: function begin codeFragment

This advice inserts a single line comment to method fOneParameter of class Base.

Local Pointcut: function (source)

begin intReturnValue (source)

Triplet: function begin codeFragment

This advice inserts a single line comment to all methods that returns type int.

Local Pointcut: function (source)

begin pointerReturnValue (source)

Triplet: function begin codeFragment

This advice inserts a single line comment to all methods that returns pointer. Such method are identified as those whose type contains character '*'. srcML is not powerful enough to report user defined data type of type pointer.

Local Pointcut: function (source)