Statistics
| Revision:

root / trunk / extensions / extSymbology / src / org / gvsig / symbology / fmap / rendering / filter / operations / NullConstant.java @ 20768

History | View | Annotate | Download (993 Bytes)

1
package org.gvsig.symbology.fmap.rendering.filter.operations;
2

    
3
import java.util.ArrayList;
4
import java.util.Hashtable;
5

    
6
import com.hardcode.gdbms.engine.values.Value;
7
/**
8
 * Implements the functionality of a null constant
9
 * 
10
 * @author Pepe Vidal Salvador - jose.vidal.salvador@iver.es
11
 *
12
 */
13
public class NullConstant implements Expression{
14

    
15
        public void addArgument(int i, Expression arg) {
16
                
17
                throw new RuntimeException("Cannot add an argument to a constant");
18
                
19
        }
20

    
21
        public void check(Hashtable<String, Value> symbol_table) throws ExpressionException {
22
                return;
23
        }
24

    
25
        public Object evaluate(Hashtable<String, Value> symbol_table) throws ExpressionException {
26
                return null;
27
        }
28

    
29
        public ArrayList<Expression> getArguments() {
30
                return null;
31
        }
32

    
33
        public String getPattern() {
34
                return null;
35
        }
36

    
37
        public void setArguments(ArrayList<Expression> arguments) {
38
                // TODO Auto-generated method stub
39
                throw new Error("Not yet implemented");
40
                
41
        }
42

    
43
}