refactoring - Get all dependencies from an start point - Java -


we dropping huge part of code. need keep comes start point.

ex:   restfacade         import service                    import dao                        import ... 

there tool goes through every class , name of imports? this:

must keep:     pkg.restfacade     pkg.service.servicex     pkg.dao.daoy     pkg.entity.address     pkg.entity.address.xxx; 

i posted link comment, can use bcel, asm 1 of libraries.

it assumed not have access sources code because otherwise wouldn't need ask , can source.

if reason have source code , want sort can make filereader , first x amount of lines before class declaration.


Comments