TrigerSoft/jaque — pull request #2 by tomwhoiscontrary (2014-12-26 21:41:04+00:00)
Title: Split ExpressionClassVisitor in two

The ExpressionClassVisitor contains two quite different kinds of code: visitor methods called by ASM, and the lambda() method called by LambdaExpression. This PR separates those into two classes: the main lambda() method goes into an ExpressionClassCracker, which then creates instances of the ExpressionClassVisitor to do its work. There is also some cleanup of the lambda method, aiming to reduce duplication and improve readability and error handling.

This should hopefully make it easier to add alternate strategies for cracking lambdas, such as the serialization hack.