Revision 22512 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/rendering/filter/operations/BooleanConstant.java
BooleanConstant.java | ||
---|---|---|
47 | 47 |
import com.iver.cit.gvsig.fmap.Messages; |
48 | 48 |
/** |
49 | 49 |
* Implements the funcionality of a Boolean constant |
50 |
*
|
|
50 |
* |
|
51 | 51 |
* @author Pepe Vidal Salvador - jose.vidal.salvador@iver.es |
52 | 52 |
* |
53 | 53 |
*/ |
54 |
public class BooleanConstant implements Expression {
|
|
54 |
public class BooleanConstant extends Operator {
|
|
55 | 55 |
private boolean value; |
56 | 56 |
|
57 | 57 |
public String getName() { |
58 | 58 |
return OperationTags.BOOLEAN_VALUE; |
59 | 59 |
} |
60 |
|
|
61 |
public BooleanConstant(String value) { |
|
62 | 60 |
|
61 |
public BooleanConstant(String value,Hashtable<String, Value> symbol_table) { |
|
62 |
super(symbol_table); |
|
63 | 63 |
this.value=new Boolean(value); |
64 | 64 |
|
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
|
68 |
public Object evaluate(Hashtable<String, Value> symbol_table) {
|
|
68 |
public Object evaluate() { |
|
69 | 69 |
return value; |
70 | 70 |
} |
71 | 71 |
|
... | ... | |
98 | 98 |
public void setArguments(ArrayList<Expression> arguments) {return;} |
99 | 99 |
|
100 | 100 |
|
101 |
public void check(Hashtable<String, Value> symbol_table) throws ExpressionException {
|
|
101 |
public void check() throws ExpressionException { |
|
102 | 102 |
return; |
103 | 103 |
} |
104 | 104 |
|
Also available in: Unified diff