Get Java Class from PsiClass Follow
Hi all ,
I am creating a plugin to be used with Maven based Java projects.
I like to get all classes in the project classpath that extends a particular class in the project. For now I am able to do this as below.
PsiClass aClass = JavaPsiFacade.getInstance(project).findClass("com.purus.BaseModule", GlobalSearchScope.everythingScope(project));
Collection<PsiClass> allClasses = ClassInheritorsSearch.search(aClass).findAll();
After getting all the PsiClass, how do I get Java classes from them, so that I can execute a method on those classes?
Please sign in to leave a comment.