vendredi 3 mai 2019

Finding all occurrences of a given code snippet in java code

I am working on a particular utility to identify all occurrences of the given java snippet in the codebase.

E.g. I want to find the occurrences of list.get(0) in my java file. I would like to identify the method and class names of each such occurrence.

This could be done by parsing a .java file but I'm looking for a cleaner solution. Is it possible with reflection





Aucun commentaire:

Enregistrer un commentaire