Add program_of_program2 to the interface for Parse_java

Summary:
See title.

I need this for the java_clobberer, coming soonish.

Test Plan: make

Reviewers: pad, jiaol

Reviewed By: pad

Differential Revision: https://phabricator.fb.com/D902846