You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lint-dev
I'm having trouble getting the PsiType from a PsiArrayType, as I want to make sure that the class object in the array of classes extends from specific interfaces.
e.g i have this
>>>>>>>>>>>>>>>>
Class[] classes = {
TestClass1.class, Object.class };
new TestClass1().registerServices(classes); //classes = PsiArrayType
<<<<<<<<<<<<<<<<<<
Is there a way to get my PsiType<Class> from PsiArrayType<Class[]> ?
Tor Norbye
unread,
Nov 24, 2021, 2:23:38 PM11/24/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lint-dev
Try PsiType.getDeepComponentType() (or if you just want the type of the array, PsiArrayType.getComponentType)