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 @ 44033
History | View | Annotate | Download (1.13 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 | 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 | 43989 | jjdelcerro | public Code getCode();
|
40 | |||
41 | 43984 | jjdelcerro | public String toJSON(); |
42 | |||
43 | public void fromJSON(String json); |
||
44 | |||
45 | public Expression clone() throws CloneNotSupportedException; |
||
46 | |||
47 | 43983 | jjdelcerro | } |