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: 20
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 online Christian DietrichFriend
Messages: 10320
Registered: July 2009
Senior Member
Hi, this is the Xtext forum, not the JDT forum. Please ask this in the JDT forum
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: Mon Mar 27 14:53:50 GMT 2017

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

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