Class JavaExpressionOptimizer


public class JavaExpressionOptimizer extends JavaExpressionConverter
Optimize the given JavaExpression. If the supplied factory is a ValueAnnotatedTypeFactory, this implementation replaces any expression that the factory has an exact value for, and does a small (not exhaustive) amount of constant-folding as well. If the factory is some other factory, less optimization occurs.