searching for PsiElements


i am looking for a way how to find PsiElements in an Project using methodnames.

i found the PsiSearchHelper but there are just methods to look for a word, a comment, ... how can i look for something like a variable, assignment, methods, ...

thanks for help :)

1 comment
Comment actions Permalink

What's the specific task that you want to accomplish? There is no API to search for "an assignment". To look for classes or methods by name, use PsiShortNamsCache.getClassesByName() and .getMethodsByName().


Please sign in to leave a comment.