This Question is Answered

2 "helpful" answers available (2 pts)
4 Replies Last post: May 30, 2012 7:31 PM by Dmitry Jemerov  
Siddharth Priya Newbie 37 posts since
May 19, 2010
Currently Being Moderated

May 30, 2012 2:41 PM

Getting a PsiClass/PsiReference from a fully qualified name

Hello,

 

Is there a way to get a PsiClass/PsiReference from a string which contains the fully qualified name of the class?

 

The class in question is in the module dependencies inside a jar.

 

thanks

Siddharth

Yann Cebron JetBrains 1,472 posts since
Aug 22, 2002
Currently Being Moderated
May 30, 2012 2:56 PM in response to: Siddharth Priya
Re: Getting a PsiClass/PsiReference from a fully qualified name

Finding a PsiClass: com.intellij.psi.JavaPsiFacade#findClass()

 

What exactly is your usecase?

Yann Cebron JetBrains 1,472 posts since
Aug 22, 2002
Currently Being Moderated
May 30, 2012 4:21 PM in response to: Siddharth Priya
Re: Getting a PsiClass/PsiReference from a fully qualified name

If it works for you, it's fine ;-)

Dmitry Jemerov JetBrains 12,178 posts since
Aug 19, 2002
Currently Being Moderated
May 30, 2012 7:31 PM in response to: Siddharth Priya
Re: Getting a PsiClass/PsiReference from a fully qualified name

AFAIK this way is good enough.

More Like This

  • Retrieving data ...