Package com.schibsted.spt.data.jslt.impl
Class OptimizeUtils
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.OptimizeUtils
-
public class OptimizeUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OptimizeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LetExpression[]
optimizeLets(LetExpression[] lets)
Removes let expressions for variables that are simply assigned to literals, because VariableExpression will inline those literals and remove itself, so there's no need to evaluate the variable.
-
-
-
Method Detail
-
optimizeLets
public static LetExpression[] optimizeLets(LetExpression[] lets)
Removes let expressions for variables that are simply assigned to literals, because VariableExpression will inline those literals and remove itself, so there's no need to evaluate the variable.
-
-