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 / symboltable / UtilsSymbolTable.java @ 45648
History | View | Annotate | Download (1.13 KB)
1 | 43983 | jjdelcerro | package org.gvsig.expressionevaluator.impl.symboltable; |
---|---|---|---|
2 | |||
3 | import org.gvsig.expressionevaluator.Function; |
||
4 | 44098 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.numeric.DecrFunction; |
5 | import org.gvsig.expressionevaluator.impl.function.numeric.IncrFunction; |
||
6 | 45523 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.ColorFunction; |
7 | 45648 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.string.DistanceFunction; |
8 | 45633 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.typeconversion.JsonValueFunction; |
9 | 43983 | jjdelcerro | import org.gvsig.expressionevaluator.spi.AbstractSymbolTable; |
10 | |||
11 | /**
|
||
12 | *
|
||
13 | * @author jjdelcerro
|
||
14 | */
|
||
15 | 44098 | jjdelcerro | public class UtilsSymbolTable extends AbstractSymbolTable { |
16 | 44126 | jjdelcerro | static final String NAME = "Utilities"; |
17 | 43983 | jjdelcerro | |
18 | 43987 | jjdelcerro | @SuppressWarnings("OverridableMethodCallInConstructor") |
19 | 44098 | jjdelcerro | public UtilsSymbolTable() {
|
20 | 44126 | jjdelcerro | super(NAME);
|
21 | 44006 | jjdelcerro | |
22 | 44098 | jjdelcerro | this.addFunction(new IncrFunction()); |
23 | this.addFunction(new DecrFunction()); |
||
24 | 45523 | jjdelcerro | this.addFunction(new ColorFunction()); |
25 | 45633 | jjdelcerro | this.addFunction(new JsonValueFunction()); |
26 | 45648 | jjdelcerro | this.addFunction(new DistanceFunction()); |
27 | 44098 | jjdelcerro | |
28 | 43983 | jjdelcerro | } |
29 | |||
30 | private void addOperator(Function operator) { |
||
31 | this.addFunction(operator);
|
||
32 | } |
||
33 | |||
34 | } |