Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Getting source code positions for advice
Getting source code positions for advice [message #685768] Sun, 19 June 2011 17:40 Go to next message
yoav  is currently offline yoav Friend
Messages: 3
Registered: July 2009
Junior Member
I'm trying to extract source file information during the weaving process. I wrote the following code to fetch the beginning and end of an advice:

public String getAdviceFormatString(BcelAdvice adv) 
     ISourceLocation pos = adv.getSourceLocation();
     int startLine  = pos.getLine();
     int endLine  = pos.getEndLine();
     // do the rest 		

I always get that startLine == endLine which correspond to the first line of the advice declaration. What am I doing wrong here?
Re: Getting source code positions for advice [message #685914 is a reply to message #685768] Mon, 20 June 2011 17:27 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
The best place to ask this question is on the AspectJ user's mailing list.
Previous Topic:LTW compilation with ant task
Next Topic:Systematic full build - AJDT 2.1.2, Eclipse 3.6
Goto Forum:

Current Time: Sat Mar 17 16:50:10 GMT 2018

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

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