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

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();

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: 14075
Registered: July 2009
Senior Member
Hi, this is the Xtext forum, not the JDT forum. Please ask this in the JDT forum

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
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: Tue Oct 19 02:27:47 GMT 2021

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

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

Back to the top