[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: MethodDeclaration heritage-information?

Thank you!  Sounds dirty, but I guess there is no better way.

Romain Dervaux wrote:

With the binding resolution activated, you can retrieve a IMethodBinding object from the MethodDeclaration ASTNode.

Then, i think you will have to parse all the MethodDeclaration of superclass and interfaces and test if override with : org.eclipse.jdt.core.dom.IMethodBinding#overrides(IMethodBinding)

Hope that's clear.

Usul a écrit :
Hi,

parsing a MethodDeclaration ASTNode, is there any way to know if the method overrides another method (from interface or parent-class) (if there is no @Override-annotation)?

I used the AST-Viewer to find something, but failed.


thank you