Statistics
| Revision:

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 43983 jjdelcerro
/*
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 44033 omartinez
public interface Expression extends Persistent, Cloneable {
17 43984 jjdelcerro
    public void clear();
18 43983 jjdelcerro
19 44215 jjdelcerro
    /**
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 43983 jjdelcerro
    public String getPhrase();
27
28 44533 jjdelcerro
//    public Script getUserScript();
29
//
30
//    public UnmodifiableBasicList<Script> getScripts();
31 43983 jjdelcerro
32 44163 jjdelcerro
    public Expression setPhrase(String phrase);
33 43983 jjdelcerro
34 44533 jjdelcerro
//    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 43983 jjdelcerro
44
    public Object execute(SymbolTable symbolTable);
45
46 44191 jjdelcerro
    public void link(SymbolTable symbolTable);
47
48 43989 jjdelcerro
    public Code getCode();
49
50 43984 jjdelcerro
    public String toJSON();
51
52
    public void fromJSON(String json);
53
54
    public Expression clone() throws CloneNotSupportedException;
55
56 44126 jjdelcerro
    public boolean isPhraseEmpty();
57
58 44163 jjdelcerro
    public boolean isEmpty();
59 44191 jjdelcerro
60
    public void setSQLCompatible(boolean sqlCompatible);
61
62
    public boolean isSQLCompatible();
63 44215 jjdelcerro
64
    public void setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers);
65
66
    public boolean getUseBracketsForIdentifiers();
67 43983 jjdelcerro
}