svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.impl / src / main / java / org / gvsig / expressionevaluator / impl / function / programming / PassFunction.java @ 45213
History | View | Annotate | Download (901 Bytes)
1 | 44138 | jjdelcerro | package org.gvsig.expressionevaluator.impl.function.programming; |
---|---|---|---|
2 | 43512 | jjdelcerro | |
3 | 44138 | jjdelcerro | import java.util.ArrayList; |
4 | import java.util.Arrays; |
||
5 | 44857 | jjdelcerro | import java.util.List; |
6 | 43512 | jjdelcerro | import org.apache.commons.lang3.Range; |
7 | 43939 | jjdelcerro | import org.gvsig.expressionevaluator.Function; |
8 | 43521 | jjdelcerro | import org.gvsig.expressionevaluator.Interpreter; |
9 | 43512 | jjdelcerro | import org.gvsig.expressionevaluator.spi.AbstractFunction; |
10 | |||
11 | 44924 | jjdelcerro | public class PassFunction extends AbstractFunction { |
12 | 44138 | jjdelcerro | |
13 | 44924 | jjdelcerro | public PassFunction() {
|
14 | 44138 | jjdelcerro | super(Function.GROUP_PROGRAMMING,
|
15 | 44924 | jjdelcerro | "PASS",
|
16 | 44138 | jjdelcerro | Range.between(0, Integer.MAX_VALUE), |
17 | 44924 | jjdelcerro | "Do nothing",
|
18 | "PASS",
|
||
19 | 44098 | jjdelcerro | null,
|
20 | 44924 | jjdelcerro | "NULL",
|
21 | 44098 | jjdelcerro | false
|
22 | 43939 | jjdelcerro | ); |
23 | 43512 | jjdelcerro | } |
24 | |||
25 | @Override
|
||
26 | 44138 | jjdelcerro | public boolean allowConstantFolding() { |
27 | return false; |
||
28 | 43939 | jjdelcerro | } |
29 | 44138 | jjdelcerro | |
30 | 43939 | jjdelcerro | @Override
|
31 | 43521 | jjdelcerro | public Object call(Interpreter interpreter, Object[] args) throws Exception { |
32 | 44924 | jjdelcerro | return null; |
33 | 43939 | jjdelcerro | } |
34 | 43512 | jjdelcerro | } |