Skip to main content



      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 02:24 Go to next message
Eclipse UserFriend
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 02:25 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 12:45:46 EDT 2025

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

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

Back to the top