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 / CodeBuilder.java @ 44858
History | View | Annotate | Download (1.55 KB)
1 |
package org.gvsig.expressionevaluator; |
---|---|
2 |
|
3 |
import org.gvsig.expressionevaluator.Code.Constant; |
4 |
import org.gvsig.expressionevaluator.Code.Identifier; |
5 |
|
6 |
import org.gvsig.tools.lang.Cloneable; |
7 |
import org.gvsig.expressionevaluator.Code.Callable; |
8 |
|
9 |
public interface CodeBuilder extends Cloneable { |
10 |
|
11 |
@Override
|
12 |
public CodeBuilder clone() throws CloneNotSupportedException; |
13 |
|
14 |
Constant constant(Object value);
|
15 |
|
16 |
Identifier identifier(String name);
|
17 |
|
18 |
Callable function(String name, int type, Codes args); |
19 |
|
20 |
Callable function(String name, Codes args); |
21 |
|
22 |
Callable operator(String name, Code arg1); |
23 |
|
24 |
Callable operator(String name, Code arg1, Code arg2); |
25 |
|
26 |
Codes args(); |
27 |
|
28 |
Callable tuple();
|
29 |
|
30 |
Callable tuple(Codes args);
|
31 |
|
32 |
Code add(Code op1, Code op2); |
33 |
|
34 |
Code subst(Code op1, Code op2); |
35 |
|
36 |
Code concat(Code op1, Code op2); |
37 |
|
38 |
Code mult(Code op1, Code op2); |
39 |
|
40 |
Code div(Code op1, Code op2); |
41 |
|
42 |
Code mod(Code op1, Code op2); |
43 |
|
44 |
Code or(Code op1, Code op2); |
45 |
|
46 |
Code and(Code op1, Code op2); |
47 |
|
48 |
Code like(Code op1, Code op2); |
49 |
|
50 |
Code ilike(Code op1, Code op2); |
51 |
|
52 |
Code regexp(Code op1, Code op2); |
53 |
|
54 |
Code lt(Code op1, Code op2); |
55 |
|
56 |
Code gt(Code op1, Code op2); |
57 |
|
58 |
Code le(Code op1, Code op2); |
59 |
|
60 |
Code ge(Code op1, Code op2); |
61 |
|
62 |
Code eq(Code op1, Code op2); |
63 |
|
64 |
Code ne(Code op1, Code op2); |
65 |
|
66 |
Code is(Code op1, Code op2); |
67 |
|
68 |
Code not(Code op1); |
69 |
|
70 |
Code negate(Code op1); |
71 |
|
72 |
Code getattr(Code obj, String attrname);
|
73 |
|
74 |
Code getitem(Code obj, Code index); |
75 |
|
76 |
Code method(Code obj, String methodname, Codes args);
|
77 |
} |