Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Getting reference to an overriding method

The AST nodes (except for IASTName) provide syntactic information, only.
Semantic information can be obtained via the IType and IBinding
interfaces. 

CDT does not provide an API to directly compute overridden or overriding
methods.
However, - in case you are writing code under the EPL - you can copy
what you need from ClassTypeHelper.findOverriders(...) and
ClassTypeHelper.findOverridden(..).

Markus. 

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Viet Le
> Sent: Monday, May 04, 2009 11:01 AM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Getting reference to an overriding method
> Importance: Low
> 
> Hello,
> 
> Is there any way to get a reference to the ASTNode of the 
> base (virtual) method from a node of its derived method. And 
> the other way round: Is it possible to get the derived method 
> from the base one?
> 
> Viet
> 
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top