Revision 43521 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/impl/function/operator/AbstractBinaryOperator.java

View differences:

AbstractBinaryOperator.java
2 2

  
3 3
import java.util.Date;
4 4
import org.apache.commons.lang3.Range;
5
import org.gvsig.expressionevaluator.Interpreter;
5 6
import org.gvsig.expressionevaluator.spi.AbstractFunction;
6 7

  
7 8

  
8 9
public abstract class AbstractBinaryOperator extends AbstractFunction implements BinaryOperator {
9 10
    
10
    protected AbstractBinaryOperator(String name, String description) {
11
        super("Operators", name, Range.is(2), description, null);
11
    protected AbstractBinaryOperator(String group, String name, String description) {
12
        super(group, name, Range.is(2), description, null);
12 13
    }    
13 14

  
14
    protected AbstractBinaryOperator(String name) {
15
        this(name, null);
15
    protected AbstractBinaryOperator(String group, String name) {
16
        this(group, name, null);
16 17
    }
17 18

  
18 19
    @Override
19
    public Object call(Object[] args) {
20
        return call(args[0], args[1]);
20
    public Object call(Interpreter interpreter, Object[] args) {
21
        return call(interpreter, args[0], args[1]);
21 22
        
22 23
    }
24

  
25
    @Override
26
    public boolean isOperator() {
27
        return true;
28
    }
23 29
    
24 30
    protected static final int TYPE_INT =     0b0000001;
25 31
    protected static final int TYPE_LONG =    0b0000010;

Also available in: Unified diff