svn-gvsig-desktop / 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 / ExpressionEvaluatorManager.java @ 43987
History | View | Annotate | Download (1.04 KB)
1 | 43512 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.expressionevaluator; |
||
3 | |||
4 | 43983 | jjdelcerro | import java.util.Collection; |
5 | 43512 | jjdelcerro | |
6 | 43521 | jjdelcerro | |
7 | 43512 | jjdelcerro | public interface ExpressionEvaluatorManager { |
8 | |||
9 | public Object evaluate(String source); |
||
10 | |||
11 | public Object evaluate(SymbolTable symbolTable, String source); |
||
12 | |||
13 | public Object evaluate(SymbolTable symbolTable, Code code); |
||
14 | |||
15 | public Code compile(String source); |
||
16 | |||
17 | public Code compile(LexicalAnalyzer lex, String source); |
||
18 | |||
19 | public MutableSymbolTable createSymbolTable();
|
||
20 | |||
21 | 43983 | jjdelcerro | public SymbolTable getSymbolTable(String name); |
22 | 43939 | jjdelcerro | |
23 | 43983 | jjdelcerro | public Collection<SymbolTable> getSymbolTables(); |
24 | |||
25 | 43987 | jjdelcerro | public void registerSymbolTable(SymbolTable symbolTable, boolean autoload); |
26 | |||
27 | public boolean isAutoload(SymbolTable symbolTable); |
||
28 | 43983 | jjdelcerro | |
29 | 43512 | jjdelcerro | public LexicalAnalyzer createLexicalAnalyzer();
|
30 | |||
31 | public CodeBuilder createCodeBuilder();
|
||
32 | |||
33 | public Compiler createCompiler(); |
||
34 | |||
35 | public Interpreter createInterpreter();
|
||
36 | 43521 | jjdelcerro | |
37 | public Double getAccuracy(); |
||
38 | |||
39 | public void setAccuracy(Double accuracy); |
||
40 | 43983 | jjdelcerro | |
41 | public Expression createExpression(); |
||
42 | } |