Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Eclipse “Find References” Algorithm

Hi Vincenzo,

Probably the "Find Method References" feature is implemented using JDT
(Java development tools) that allow you to exploit the java compiler to
get AST (Abstract Syntax Trees) of the CompilationUnits...

When you have an AST you just visit it and look for the things you want,
in this case the invocations of a function, represented by the
MethodInvocation AST's Node.


JDT -> http://www.eclipse.org/jdt/

If you want to explore more the AST world there's this useful plugin
(for eclipse) that let you look at the current AST of any Java file.
Just to understand structure etc..

Plugin -> http://www.eclipse.org/jdt/ui/astview/


Ciaoo

On 04/17/2016 11:10 PM, Vincenzo Musco wrote:
> Hi guys,
> 
> Does anyone know what is the method or algorithm used by Eclipse IDE for
> the /Find Method References tool/ (i.e. right click on any method >
> |References| > |Project|).
> How is computed the method set returned by the IDE?
> 
> Thanks.
> 
> 
> 
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/eclipse-dev
> 


Back to the top