Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Groovy is the dynamic language syntax for Java. As such, it can interact pretty seamlessly with Java code (including compiled byte code), allowing you much more flexible syntax. Groovy makes it possible for you to do a bunch of stuff on the Java platform that is difficult or impossible using Java.
You can invoke the standard reflection mechanism in Java using the Groovy syntax as shown in this listing, which replicates the test for isFactor shown earlier: