Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Capturing Primitive Assignments
Capturing Primitive Assignments [message #578596] Sat, 17 April 2004 20:20
Bret is currently offline BretFriend
Messages: 9
Registered: July 2009
Junior Member
For a school assignment, we are trying to model a stack machine using
AspectJ. I need to figure out how I can write a Pointcut that can execute
before ANY variable is used inside of a method.

For example in this method,
public static int bar(){
String str;
int r;
str = new String(“here”);
r = str.length();
return r;
}

I need to capture the initialization of 'str' and 'r' and the values they
are assigned. Can anoyne give me a hand or point me in the right
direction? (I already know how one can capture a method and capture a
getter or a setter, but I believe capturing primitives is a little
trickier)

Thanks,
Bret
Previous Topic:Capturing Primitive Assignments
Next Topic:AJDT 1.1.7 available - for Eclipse 3.0M8
Goto Forum:
  


Current Time: Tue Mar 19 03:16:27 GMT 2024

Powered by FUDForum. Page generated in 0.03931 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top