Revision 43521 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.api/src/main/java/org/gvsig/expressionevaluator/spi/AbstractFunction.java

View differences:

AbstractFunction.java
9 9
import org.gvsig.fmap.geom.primitive.Point;
10 10

  
11 11
public abstract class AbstractFunction implements Function {
12

  
12
 
13 13
    private final String name;
14 14
    private final String group;
15 15
    private final Range argc;
16 16
    private final String description;
17 17
    private final String[] descriptionArgs;
18 18
    private List<String> alias;
19
    private String template;
19 20

  
20
    protected AbstractFunction(String group, String name, Range argc, String description, String[] descriptionArgs) {
21
    protected AbstractFunction(String group, String name, Range argc, String description, String template, String[] descriptionArgs) {
21 22
        this.name = name;
22 23
        this.group = group;
23 24
        this.argc = argc;
24 25
        this.description = description;
26
        this.template = template;
25 27
        this.descriptionArgs = descriptionArgs;
26 28
    }
27 29

  
30
    protected AbstractFunction(String group, String name, Range argc, String desription, String template) {
31
        this(group, name, argc, desription, template, null);
32
    }
33

  
28 34
    protected AbstractFunction(String group, String name, Range argc) {
29
        this(group, name, argc, null, null);
35
        this(group, name, argc, null, null, null);
30 36
    }
31 37

  
32 38
    @Override
......
67 73
        return this.alias;
68 74
    }
69 75

  
76
    @Override
77
    public String template() {
78
        return this.template;
79
    }
80

  
81
    @Override
82
    public boolean isOperator() {
83
        return false;
84
    }
85
    
70 86
    protected int getInt(Object args[], int n) {
71 87
        if( args.length < n  ) {
72 88
            throw new IllegalArgumentException("Required argument "+n+" and only found " + args.length +" arguments in call to '"+name()+"'.");

Also available in: Unified diff