I work with automated front-end testing using Selenium webdriver quite frequently. One webdriver method I need to use a lot is
webDriver.executeScript("some jQuery stuff usually").
I created a pretty basic implementation to demonstrate what I'm looking for. It works pretty easily because JS lets you inspect all the functions of a class, all the functions of its prototype, and AngularJS's method for annotating functions is publicly available.
For example, running
JS2J.generate("$") will create this Java class.