Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » 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. https://dev.eclipse.org/mailman/listinfo/aspectj-dev
Previous Topic:LTW compilation with ant task
Next Topic:Systematic full build - AJDT 2.1.2, Eclipse 3.6
Goto Forum:
  


Current Time: Thu Apr 25 14:55:45 GMT 2024

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

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

Back to the top