../../AspectXLib/c/quickSort/aspects/AddFunctionComment_2.ax
void
.
A related aspect program (AddFunctionComment_1
) shows an alternative way to modify function comments.
Pointcuts | |
function | targetFunction |
Points to the target functions whose comment should be modified | |
comment | targetFunctionComment |
Points to the comments that must be modified | |
Advices | |
end | addFunctionComment |
Add a comment at the end of the comment of the target function |
function
element which have a subelement called type
which
holds the return type of the function. The type of the function is itself enclosed
by a name
element. The target
functions are identified using an XPath expression that identifies all function elements which
have the return type void
.targetFunction
pointcut. Triplet: comment end comment
CDATA
section is used in order to allow use of
HTML tags in the comment text. Aspect program AddFunctionComment_1
shows an alternative way to express the HTML tag.Refers to global pointcut: comment targetFunctionComment