SearchEngine equivalent to BasicSearchEngine.searchAllConstructorDeclarations(...) ? #3017
Unanswered
mickaelistria
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking at reducing direct reference to SearchEngine in JDT, so we may more easily allow alternative SearchEngine to be used under the hood (concretely one using JDT DOM instead of ECJ DOM in this case, but the question applies more generally).
I see SearchableEnvironment uses BasicSearchengine.searchAllConstructorDeclarations() which does the job well, I tried to see if SearchEngine provides something close but couldn't find anything. Is SearchEngine capable of search constructor declarations? Should we use searchMethodDeclarations() for that? I didn't manage to find an inspiring example, so if anyone has an answer and a link to such example, that would be very welcome.
Or can it be just that SearchEngine has been missing such method and it should just be added?
Beta Was this translation helpful? Give feedback.
All reactions