JQuery

Program-Transformation.Org: The Program Transformation Wiki
JQuery is query-based source code browser for Java, based on Eclipse. The tool is itself an Eclipse plugin and also uses the infrastructure of Eclipse for parsing and analyzing Java programs.

The query language of JQuery is based on logic (Prolog-like).