PsiNewExpression.getClassReference() to PsiClass
From PsiNewExpression, how do you get to the PsiClass of the instance
that is being constructed in the new expression? I don't seem to be
getting there from PsiNewExpression.getClassReference().
TIA,
Jon
Please sign in to leave a comment.
Jon Steelman wrote:
One more step: PsiNewExpression.getClassReference().resolve().
Beware of the JavaDoc comment for getClassReference() though.
Friendly,
Dmitry
--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Dmitry Lomov (JetBrains) wrote:
>> From PsiNewExpression, how do you get to the PsiClass of the instance
>>that is being constructed in the new expression? I don't seem to be
>>getting there from PsiNewExpression.getClassReference().
Thanks!