I had a need to find all classes that exposed a REST based interface. I couldn’t figure out how to do this with jd-gui, so this will be my new go-to for decompiling…
https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler
$ for f in $(find . -name "*.jar" -type f); do
jar -xvf $f;
done
$ for f in $(find . -name "*.class" -type f); do
java -jar procyon-decompiler-0.5.30.jar $f | grep '@Api';
if [ $? -eq 0 ]; then
echo $f;
fi;
done