ruben2020 / codequery

A code-understanding, code-browsing or code-search tool. This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. It builds upon the databases of cscope and ctags, and provides a nice GUI tool.
https://ruben2020.github.io/codequery/
Mozilla Public License 2.0
685 stars 86 forks source link

java finding implementations of interface #76

Open spacerainbow000 opened 6 years ago

spacerainbow000 commented 6 years ago

I'm using codequery with Java and I'm wondering whether there is a way to find implementations of an interface. is there a way to do this with one of the search parameters? none of them appear to map to that explicitly (I assume since ctags isn't Java-specific/focused), but one of these should work, right? Is there a search that might include the results I'm looking for, plus extra stuff, that I can do extra filtering down on? worst case scenario i feel like a symbol search on 'implements*{interface-name}' should work but looking for something other than that

ruben2020 commented 5 years ago

@spacerainbow000 This should be available in the ctags tags file. This should be added as a feature.

ruben2020 commented 4 years ago

@spacerainbow000 Turns out cscope does not support java interfaces. And ctags treats java interfaces similar to classes i.e. implements is treated the same as extends. It's not so easy for me to add support for java interfaces without have cscope recognize interfaces as just class. So, I won't add this for now.

In the mean time, you can use the Grep feature which is available in the codequery GUI.