Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.impl / src / main / java / org / gvsig / expressionevaluator / integration / DefaultEvaluatorFactory.java @ 43809

History | View | Annotate | Download (588 Bytes)

1 43809 jjdelcerro
package org.gvsig.expressionevaluator.integration;
2 43521 jjdelcerro
3
import org.gvsig.expressionevaluator.ExpressionEvaluator;
4
import org.gvsig.fmap.dal.EvaluatorFactory;
5
import org.gvsig.tools.evaluator.Evaluator;
6
7
8
public class DefaultEvaluatorFactory implements EvaluatorFactory {
9
10
    @Override
11
    public Evaluator createEvaluator(String expression) {
12
        ExpressionEvaluator evaluator = new DefaultExpressionEvaluator();
13
        evaluator.setSource(expression);
14
        return evaluator;
15
    }
16
17
    @Override
18
    public String getName() {
19
        return "SQL expression evaluator";
20
    }
21
22
}