Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] weaving code after loops

Hello everybody,

I want to weave code into the following example code:

void foo()
{
	boolean a = true;
	boolean b = true;

	while(a == true)
	{
		// do something
		while(b == true)
		{
			// do something
		}
	}
}

I want to weave a call to method bar after the inner while-loop:

void foo()
{
	boolean a = true;
	boolean b = true;

	while(a == true)
	{
		// do something
		while(b == true)
		{
			// do something
		}
		bar(); // code to weave
	}
}

In current I see no way how I can express this joinpoint using AspectJ. Has
anybody an idea?

best regards
Sven

------------------------------------
Dipl.-Inf. Sven Apel

Universität Magdeburg:
Tel.:   +49-(0)-391-67-11899
Fax.:   +49-(0)-391-67-12020
e-mail: apel@xxxxxxxxxxxxxxxxxxxxxxx



Back to the top