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

2 comments
Comment actions Permalink

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

0
Comment actions Permalink

Thank you..it worked

0

Please sign in to leave a comment.