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 / impl / function / operator / AbstractUnaryOperator.java @ 44207

History | View | Annotate | Download (897 Bytes)

1 43512 jjdelcerro
package org.gvsig.expressionevaluator.impl.function.operator;
2
3
import org.apache.commons.lang3.Range;
4 43521 jjdelcerro
import org.gvsig.expressionevaluator.Interpreter;
5 43512 jjdelcerro
import org.gvsig.expressionevaluator.spi.AbstractFunction;
6
7
8
public abstract class AbstractUnaryOperator extends AbstractFunction implements UnaryOperator {
9
10 44207 jjdelcerro
    protected AbstractUnaryOperator(String group, String name, String description, boolean sqlCompatible) {
11
        super(group, name, Range.is(1), description, name + " {{oper}} ", null, null, sqlCompatible);
12 43512 jjdelcerro
    }
13
14 44207 jjdelcerro
    protected AbstractUnaryOperator(String group, String name, boolean sqlCompatible) {
15
        this(group, name, null, sqlCompatible);
16 43512 jjdelcerro
    }
17
18
    @Override
19 43521 jjdelcerro
    public Object call(Interpreter interpreter, Object[] args) {
20
        return call(interpreter, args[0]);
21 43512 jjdelcerro
22
    }
23
24 43521 jjdelcerro
    @Override
25
    public boolean isOperator() {
26
        return true;
27
    }
28 43512 jjdelcerro
}