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 @ 47248
History | View | Annotate | Download (1.96 KB)
1 | 43512 | jjdelcerro | package org.gvsig.expressionevaluator; |
---|---|---|---|
2 | |||
3 | 45025 | jjdelcerro | import java.util.Map; |
4 | 43512 | jjdelcerro | import org.gvsig.expressionevaluator.Code.Constant; |
5 | import org.gvsig.expressionevaluator.Code.Identifier; |
||
6 | |||
7 | 43809 | jjdelcerro | import org.gvsig.tools.lang.Cloneable; |
8 | 44752 | jjdelcerro | import org.gvsig.expressionevaluator.Code.Callable; |
9 | 43809 | jjdelcerro | |
10 | public interface CodeBuilder extends Cloneable { |
||
11 | |||
12 | @Override
|
||
13 | public CodeBuilder clone() throws CloneNotSupportedException; |
||
14 | |||
15 | 43512 | jjdelcerro | Constant constant(Object value);
|
16 | |||
17 | Identifier identifier(String name);
|
||
18 | |||
19 | 47115 | jjdelcerro | Callable block(Code...codes);
|
20 | |||
21 | 44752 | jjdelcerro | Callable function(String name, int type, Codes args); |
22 | 43512 | jjdelcerro | |
23 | 44752 | jjdelcerro | Callable function(String name, Codes args); |
24 | 43512 | jjdelcerro | |
25 | 44752 | jjdelcerro | Callable operator(String name, Code arg1); |
26 | 43512 | jjdelcerro | |
27 | 44752 | jjdelcerro | Callable operator(String name, Code arg1, Code arg2); |
28 | 43512 | jjdelcerro | |
29 | 47175 | jjdelcerro | MutableCodes args(); |
30 | 44750 | jjdelcerro | |
31 | 44752 | jjdelcerro | Callable tuple();
|
32 | 43512 | jjdelcerro | |
33 | 44752 | jjdelcerro | Callable tuple(Codes args);
|
34 | 47248 | fdiaz | |
35 | Callable tuple(Code... items);
|
||
36 | 44750 | jjdelcerro | |
37 | 43512 | jjdelcerro | Code add(Code op1, Code op2); |
38 | |||
39 | Code subst(Code op1, Code op2); |
||
40 | |||
41 | 44139 | jjdelcerro | Code concat(Code op1, Code op2); |
42 | |||
43 | 43512 | jjdelcerro | Code mult(Code op1, Code op2); |
44 | |||
45 | Code div(Code op1, Code op2); |
||
46 | |||
47 | Code mod(Code op1, Code op2); |
||
48 | |||
49 | Code or(Code op1, Code op2); |
||
50 | |||
51 | Code and(Code op1, Code op2); |
||
52 | |||
53 | Code like(Code op1, Code op2); |
||
54 | |||
55 | Code ilike(Code op1, Code op2); |
||
56 | |||
57 | 43532 | jjdelcerro | Code regexp(Code op1, Code op2); |
58 | |||
59 | 43512 | jjdelcerro | Code lt(Code op1, Code op2); |
60 | |||
61 | Code gt(Code op1, Code op2); |
||
62 | |||
63 | Code le(Code op1, Code op2); |
||
64 | |||
65 | Code ge(Code op1, Code op2); |
||
66 | |||
67 | Code eq(Code op1, Code op2); |
||
68 | |||
69 | Code ne(Code op1, Code op2); |
||
70 | |||
71 | Code is(Code op1, Code op2); |
||
72 | |||
73 | Code not(Code op1); |
||
74 | |||
75 | 44098 | jjdelcerro | Code negate(Code op1); |
76 | |||
77 | 43939 | jjdelcerro | Code getattr(Code obj, String attrname);
|
78 | |||
79 | 44139 | jjdelcerro | Code getitem(Code obj, Code index); |
80 | 45025 | jjdelcerro | |
81 | Code dict(Map<String,Code>map); |
||
82 | 44139 | jjdelcerro | |
83 | Code method(Code obj, String methodname, Codes args);
|
||
84 | 45153 | jjdelcerro | |
85 | Code let(String identifier, Code value);
|
||
86 | 46081 | jjdelcerro | |
87 | 46711 | jjdelcerro | Code $HostExpression(Code value);
|
88 | |||
89 | 46082 | jjdelcerro | Code $HostExpression(Code value, String mode_specier); |
90 | 47177 | jjdelcerro | |
91 | Code in(Code value1, Code value2); |
||
92 | |||
93 | Code between(Code value1, Code value2, Code value3); |
||
94 | |||
95 | 43512 | jjdelcerro | } |