org.jxls.expression.JexlExpressionEvaluator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxls Show documentation
Show all versions of jxls Show documentation
Small library for Excel generation based on XLS templates
package org.jxls.expression;
import org.apache.commons.jexl2.Expression;
import org.apache.commons.jexl2.JexlContext;
import org.apache.commons.jexl2.JexlEngine;
import org.apache.commons.jexl2.MapContext;
import java.util.HashMap;
import java.util.Map;
/**
* Date: Nov 2, 2009
*
* @author Leonid Vysochyn
*/
public class JexlExpressionEvaluator implements ExpressionEvaluator{
private Expression jexlExpression;
private JexlContext jexlContext;
private static final ThreadLocal jexlThreadLocal = new ThreadLocal(){
@Override
protected JexlEngine initialValue() {
return new JexlEngine();
}
};
private static final ThreadLocal