biba
biba

Reputation: 41

Full Qualified name

I need to extract all the fully qualified names present in a Java source code. Could anyone point me in the right direction? i have to transforme all qualified names to an import instructions. More details : do what ctl+shift+M do. And it must be authomatique in total abstraction to the user and the fonction wille be asked after each modification of the source code. The java source code files are generated bay an other gerator (meta language) and i can not modify the generator. i can not use shift+ctrl+M because it must be authomatic

Upvotes: 0

Views: 2192

Answers (1)

dash1e
dash1e

Reputation: 7807

Maybe you can use JavaCC. There is already a Java grammar that you can use to detect all the FQN you need in the source.

Upvotes: 1

Related Questions