Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JDT - Check Instance of RuntimeException(To check if a Exception class is subclass of RuntimeException using the QualifiedName string)
JDT - Check Instance of RuntimeException [message #1754845] Thu, 23 February 2017 07:24 Go to next message
Suresh P is currently offline Suresh PFriend
Messages: 27
Registered: May 2013
Junior Member
hi

By using JDT (AST), I need to check using the Exception class's QualifiedName (string format) is an subclass of RuntimeException class?

Im using the below code:
IMethodBinding methodbinding = ((MethodDeclaration)node).resolveBinding().getMethodDeclaration();
ITypeBinding[] exceptiontypes = methodbinding.getExceptionTypes();



Thanks
Re: JDT - Check Instance of RuntimeException [message #1754846 is a reply to message #1754845] Thu, 23 February 2017 07:25 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14729
Registered: July 2009
Senior Member
Hi, this is the Xtext forum, not the JDT forum. Please ask this in the JDT forum

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Previous Topic:how to call or run Java class(pure java code) in the Xtend Code when generate my Xtext Project ?
Next Topic:Producing multiple objects from one rule
Goto Forum:
  


Current Time: Fri Nov 08 18:31:11 GMT 2024

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

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

Back to the top