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 @ 44533
History | View | Annotate | Download (1.72 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.expressionevaluator; |
7 |
|
8 |
import org.gvsig.tools.persistence.Persistent; |
9 |
import org.gvsig.tools.script.Script; |
10 |
import org.gvsig.tools.util.UnmodifiableBasicList; |
11 |
|
12 |
/**
|
13 |
*
|
14 |
* @author jjdelcerro
|
15 |
*/
|
16 |
public interface Expression extends Persistent, Cloneable { |
17 |
public void clear(); |
18 |
|
19 |
/**
|
20 |
* This symbol table don't persist with the expression.
|
21 |
*
|
22 |
* @return the symbol table of the expression
|
23 |
*/
|
24 |
public SymbolTable getSymbolTable();
|
25 |
|
26 |
public String getPhrase(); |
27 |
|
28 |
// public Script getUserScript();
|
29 |
//
|
30 |
// public UnmodifiableBasicList<Script> getScripts();
|
31 |
|
32 |
public Expression setPhrase(String phrase); |
33 |
|
34 |
// public Expression setUserScript(String code, String languaje);
|
35 |
//
|
36 |
// public Expression setUserScript(String code);
|
37 |
//
|
38 |
// public Expression setUserScript(Script script);
|
39 |
//
|
40 |
// public void removeAllScripts();
|
41 |
//
|
42 |
// public Expression addScript(Script script);
|
43 |
|
44 |
public Object execute(SymbolTable symbolTable); |
45 |
|
46 |
public void link(SymbolTable symbolTable); |
47 |
|
48 |
public Code getCode();
|
49 |
|
50 |
public String toJSON(); |
51 |
|
52 |
public void fromJSON(String json); |
53 |
|
54 |
public Expression clone() throws CloneNotSupportedException; |
55 |
|
56 |
public boolean isPhraseEmpty(); |
57 |
|
58 |
public boolean isEmpty(); |
59 |
|
60 |
public void setSQLCompatible(boolean sqlCompatible); |
61 |
|
62 |
public boolean isSQLCompatible(); |
63 |
|
64 |
public void setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers); |
65 |
|
66 |
public boolean getUseBracketsForIdentifiers(); |
67 |
} |