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 / Expression.java @ 44750
History | View | Annotate | Download (1.07 KB)
1 | 43983 | jjdelcerro | package org.gvsig.expressionevaluator; |
---|---|---|---|
2 | |||
3 | import org.gvsig.tools.persistence.Persistent; |
||
4 | |||
5 | /**
|
||
6 | *
|
||
7 | * @author jjdelcerro
|
||
8 | */
|
||
9 | 44033 | omartinez | public interface Expression extends Persistent, Cloneable { |
10 | 43984 | jjdelcerro | public void clear(); |
11 | 43983 | jjdelcerro | |
12 | 44215 | jjdelcerro | /**
|
13 | * This symbol table don't persist with the expression.
|
||
14 | *
|
||
15 | * @return the symbol table of the expression
|
||
16 | */
|
||
17 | public SymbolTable getSymbolTable();
|
||
18 | |||
19 | 43983 | jjdelcerro | public String getPhrase(); |
20 | |||
21 | 44163 | jjdelcerro | public Expression setPhrase(String phrase); |
22 | 44750 | jjdelcerro | |
23 | 43983 | jjdelcerro | public Object execute(SymbolTable symbolTable); |
24 | |||
25 | 44191 | jjdelcerro | public void link(SymbolTable symbolTable); |
26 | |||
27 | 43989 | jjdelcerro | public Code getCode();
|
28 | |||
29 | 43984 | jjdelcerro | public String toJSON(); |
30 | |||
31 | public void fromJSON(String json); |
||
32 | |||
33 | public Expression clone() throws CloneNotSupportedException; |
||
34 | |||
35 | 44126 | jjdelcerro | public boolean isPhraseEmpty(); |
36 | |||
37 | 44163 | jjdelcerro | public boolean isEmpty(); |
38 | 44191 | jjdelcerro | |
39 | public void setSQLCompatible(boolean sqlCompatible); |
||
40 | |||
41 | public boolean isSQLCompatible(); |
||
42 | 44215 | jjdelcerro | |
43 | public void setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers); |
||
44 | |||
45 | public boolean getUseBracketsForIdentifiers(); |
||
46 | 43983 | jjdelcerro | } |