How to get all the classes in a module.

Hi,
I want a list of all classes in module. I have tried

PsiShortNamesCache.getInstance(project).getAllClassNames()

but it return the classes from the library as well. I dont want the classes from library. How can i do this.

Thanks,
Mangala

0

Use com.intellij.psi.search.searches.AllClassesSearch with corresponding searchScope

0
Avatar
Permanently deleted user

Thank you..it worked

0

请先登录再写评论。