RFT: filtered by file extention

We might want to use filter by extention. For example, what if
we want to only care about java file?

$ python generate_json.py --g ../android_frameworks_base/ --o
developers.json --m 3 --ext java