Revision 11729 branches/v10/extensions/extExpressionField/src/com/iver/cit/gvsig/project/documents/table/operators/EndsWith.java
EndsWith.java | ||
---|---|---|
22 | 22 |
public void eval(BSFManager interpreter) throws BSFException { |
23 | 23 |
// interpreter.eval(ExpresionFieldExtension.BEANSHELL,null,-1,-1,"boolean endsWith(String value1,String value2){return value1.endsWith(value2);};"); |
24 | 24 |
interpreter.exec(ExpresionFieldExtension.JYTHON,null,-1,-1,"def endsWith(value1,value2):\n" + |
25 |
" import java.lang.Math\n" + |
|
26 |
" return value1.endsWith(value2)"); |
|
25 |
" return value1.endswith(value2)"); |
|
27 | 26 |
} |
28 | 27 |
public boolean isEnable() { |
29 | 28 |
return (getType()==IOperator.STRING); |
Also available in: Unified diff