Wouldn't the easiest thing just to grep the source code for @GET, @POST, etc? If you want to avoid false positives, grep for the import statements for them. Doing this via code seems to be the wrong way.