IntelliJ IDEA plug-in development: Get VirtualFile classes (or paths) for a specific VirtualFile source

This is a cross-mail from http://www.jetbrains.net/devnet/message/5264436#5264436 - I have not received a response on this forum for two weeks, so I'm asking it again here (please don't flame).

This question relates to the development of plugins for the IntelliJ IDEA IDE, in particular for the development of java:

Is there any API to get a list of .class files for a given source file?

I am trying to write a plugin that creates a binary patch patch based on a list of changes. I managed to get a list of changes and, from it, a list of source files (VirtualFile). Now I am trying to get compiled class files for these source files (I am not against preparing "make" or relying on the previous compilation output).

I played a little with ProjectFileIndex, but could only find root classes. I would not want to do a “dumb” search along the way, because inner classes (and inner anonymous classes) would make it difficult to create correctly.

Is there such an API? Or am I doomed to take the paths?

Thanks, Ran.

+3
source share
1 answer

, , root, Java ($ 1 ).

0

Source: https://habr.com/ru/post/1749784/


All Articles