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 / ProgrammingSymbolTable.java @ 44269
History | View | Annotate | Download (3.14 KB)
1 | 43983 | jjdelcerro | package org.gvsig.expressionevaluator.impl.symboltable; |
---|---|---|---|
2 | |||
3 | import org.gvsig.expressionevaluator.Function; |
||
4 | 44139 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.CallMethodFunction; |
5 | import org.gvsig.expressionevaluator.impl.function.programming.CaseFunction; |
||
6 | import org.gvsig.expressionevaluator.impl.function.programming.CodeBlockFunction; |
||
7 | import org.gvsig.expressionevaluator.impl.function.programming.ForEachFunction; |
||
8 | import org.gvsig.expressionevaluator.impl.function.programming.ForFunction; |
||
9 | import org.gvsig.expressionevaluator.impl.function.programming.CallStaticMethodFunction; |
||
10 | import org.gvsig.expressionevaluator.impl.function.programming.CreateFnFunction; |
||
11 | 44269 | omartinez | import org.gvsig.expressionevaluator.impl.function.programming.EvalFunction; |
12 | 44181 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.FileFunction; |
13 | 44139 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.GetattrFunction; |
14 | import org.gvsig.expressionevaluator.impl.function.programming.GetitemFunction; |
||
15 | 44201 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.LabelValueFunction; |
16 | 44181 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.LenFunction; |
17 | 44139 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.LetFunction; |
18 | import org.gvsig.expressionevaluator.impl.function.programming.ListFunction; |
||
19 | import org.gvsig.expressionevaluator.impl.function.programming.PrintFunction; |
||
20 | import org.gvsig.expressionevaluator.impl.function.programming.RangeFunction; |
||
21 | import org.gvsig.expressionevaluator.impl.function.programming.ReturnFunction; |
||
22 | 44144 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.TryFunction; |
23 | 44181 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.URLFunction; |
24 | 44139 | jjdelcerro | import org.gvsig.expressionevaluator.impl.function.programming.WhileFunction; |
25 | 43983 | jjdelcerro | import org.gvsig.expressionevaluator.spi.AbstractSymbolTable; |
26 | |||
27 | /**
|
||
28 | *
|
||
29 | * @author jjdelcerro
|
||
30 | */
|
||
31 | 44139 | jjdelcerro | public class ProgrammingSymbolTable extends AbstractSymbolTable { |
32 | static final String NAME = "Programming"; |
||
33 | 43983 | jjdelcerro | |
34 | 43987 | jjdelcerro | @SuppressWarnings("OverridableMethodCallInConstructor") |
35 | 44139 | jjdelcerro | public ProgrammingSymbolTable() {
|
36 | 44126 | jjdelcerro | super(NAME);
|
37 | 44006 | jjdelcerro | |
38 | 44139 | jjdelcerro | this.addFunction(new CaseFunction()); |
39 | 44098 | jjdelcerro | this.addFunction(new CodeBlockFunction()); |
40 | 44139 | jjdelcerro | this.addFunction(new ForEachFunction()); |
41 | this.addFunction(new ForFunction()); |
||
42 | 44098 | jjdelcerro | this.addFunction(new LetFunction()); |
43 | this.addFunction(new WhileFunction()); |
||
44 | 44139 | jjdelcerro | this.addFunction(new CreateFnFunction()); |
45 | this.addFunction(new ReturnFunction()); |
||
46 | 44144 | jjdelcerro | this.addFunction(new TryFunction()); |
47 | 44139 | jjdelcerro | |
48 | this.addFunction(new PrintFunction()); |
||
49 | this.addFunction(new ListFunction()); |
||
50 | this.addFunction(new RangeFunction()); |
||
51 | this.addFunction(new GetattrFunction()); |
||
52 | this.addFunction(new GetitemFunction()); |
||
53 | this.addFunction(new CallStaticMethodFunction()); |
||
54 | this.addFunction(new CallMethodFunction()); |
||
55 | 44181 | jjdelcerro | this.addFunction(new FileFunction()); |
56 | this.addFunction(new LenFunction()); |
||
57 | this.addFunction(new URLFunction()); |
||
58 | 44201 | jjdelcerro | this.addFunction(new LabelValueFunction()); |
59 | 44269 | omartinez | this.addFunction(new EvalFunction()); |
60 | 43983 | jjdelcerro | } |
61 | |||
62 | private void addOperator(Function operator) { |
||
63 | this.addFunction(operator);
|
||
64 | } |
||
65 | |||
66 | } |