convert string with generics to PsiType

Answered

Is there a shortcut method for getting a PsiType from a string like:

java.util.List<java.lang.Integer>

Given List and Integer I can create this, but was hoping there was some magic somewhere.

Something like com.intellij.psi.PsiElementFactory#createTypeByFQClassName(java.lang.String) but that can handle the above...?

 

2 comments
Comment actions Permalink

com.intellij.psi.PsiJavaParserFacade#createTypeFromText

2
Comment actions Permalink

D'oh! So easy when you find it ;-). Thanks a lot.

0

Please sign in to leave a comment.