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 @ 44147
History | View | Annotate | Download (1.17 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 |
public String getPhrase(); |
20 |
|
21 |
public Script getUserScript();
|
22 |
|
23 |
public UnmodifiableBasicList<Script> getScripts();
|
24 |
|
25 |
public void setPhrase(String phrase); |
26 |
|
27 |
public void setUserScript(String code, String languaje); |
28 |
|
29 |
public void setUserScript(String code); |
30 |
|
31 |
public void setUserScript(Script script); |
32 |
|
33 |
public void removeAllScripts(); |
34 |
|
35 |
public void addScript(Script script); |
36 |
|
37 |
public Object execute(SymbolTable symbolTable); |
38 |
|
39 |
public Code getCode();
|
40 |
|
41 |
public String toJSON(); |
42 |
|
43 |
public void fromJSON(String json); |
44 |
|
45 |
public Expression clone() throws CloneNotSupportedException; |
46 |
|
47 |
public boolean isPhraseEmpty(); |
48 |
|
49 |
} |