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 #34389] Sat, 17 April 2004 20:20
Eclipse UserFriend
Originally posted by: bret540.yahoo.com

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:Framework for supporting java based languages in eclipse?
Next Topic:Capturing Primitive Assignments
Goto Forum:
  


Current Time: Thu Apr 18 06:40:22 GMT 2024

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

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

Back to the top