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 @ 46082
History | View | Annotate | Download (1.72 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 | 44752 | jjdelcerro | Callable function(String name, int type, Codes args); |
20 | 43512 | jjdelcerro | |
21 | 44752 | jjdelcerro | Callable function(String name, Codes args); |
22 | 43512 | jjdelcerro | |
23 | 44752 | jjdelcerro | Callable operator(String name, Code arg1); |
24 | 43512 | jjdelcerro | |
25 | 44752 | jjdelcerro | Callable operator(String name, Code arg1, Code arg2); |
26 | 43512 | jjdelcerro | |
27 | 44139 | jjdelcerro | Codes args(); |
28 | 44750 | jjdelcerro | |
29 | 44752 | jjdelcerro | Callable tuple();
|
30 | 43512 | jjdelcerro | |
31 | 44752 | jjdelcerro | Callable tuple(Codes args);
|
32 | 44750 | jjdelcerro | |
33 | 43512 | jjdelcerro | Code add(Code op1, Code op2); |
34 | |||
35 | Code subst(Code op1, Code op2); |
||
36 | |||
37 | 44139 | jjdelcerro | Code concat(Code op1, Code op2); |
38 | |||
39 | 43512 | jjdelcerro | Code mult(Code op1, Code op2); |
40 | |||
41 | Code div(Code op1, Code op2); |
||
42 | |||
43 | Code mod(Code op1, Code op2); |
||
44 | |||
45 | Code or(Code op1, Code op2); |
||
46 | |||
47 | Code and(Code op1, Code op2); |
||
48 | |||
49 | Code like(Code op1, Code op2); |
||
50 | |||
51 | Code ilike(Code op1, Code op2); |
||
52 | |||
53 | 43532 | jjdelcerro | Code regexp(Code op1, Code op2); |
54 | |||
55 | 43512 | jjdelcerro | Code lt(Code op1, Code op2); |
56 | |||
57 | Code gt(Code op1, Code op2); |
||
58 | |||
59 | Code le(Code op1, Code op2); |
||
60 | |||
61 | Code ge(Code op1, Code op2); |
||
62 | |||
63 | Code eq(Code op1, Code op2); |
||
64 | |||
65 | Code ne(Code op1, Code op2); |
||
66 | |||
67 | Code is(Code op1, Code op2); |
||
68 | |||
69 | Code not(Code op1); |
||
70 | |||
71 | 44098 | jjdelcerro | Code negate(Code op1); |
72 | |||
73 | 43939 | jjdelcerro | Code getattr(Code obj, String attrname);
|
74 | |||
75 | 44139 | jjdelcerro | Code getitem(Code obj, Code index); |
76 | 45025 | jjdelcerro | |
77 | Code dict(Map<String,Code>map); |
||
78 | 44139 | jjdelcerro | |
79 | Code method(Code obj, String methodname, Codes args);
|
||
80 | 45153 | jjdelcerro | |
81 | Code let(String identifier, Code value);
|
||
82 | 46081 | jjdelcerro | |
83 | 46082 | jjdelcerro | Code $HostExpression(Code value, String mode_specier); |
84 | 43512 | jjdelcerro | } |