convert string with generics to PsiType

已回答

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...?

 

3

com.intellij.psi.PsiJavaParserFacade#createTypeFromText

2

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

0

请先登录再写评论。