danix800 / ik-expression Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/ik-expression
Automatically exported from code.google.com/p/ik-expression
Thank u for the great job on Ik-e and it is easy to use in our projects!
But when using I found a problem that the user-defined functions ik-e
supported were construted when system starts. So we cann't use the spring-
managed beans and it's hard to inject other beans(like httprequest ...)
into the functions. That means the user-defined functions ik-e supported
are more like Toolkit beans than business beans.
To resolve this problem, I use a ugly way: add a static attribute into
ExpressionEvaluator ,add synchronized block in evaluate method and inject
it to function object everytime it is to be invoked.
So my suggestion is if you can change the function's init and invoking
method, let function object more extensible so user can manage it by
ourself?
After all, thanks again for your great job, it's helpful!
Best wishes
Original issue reported on code.google.com by [email protected]
on 5 May 2009 at 3:41
您好。
我现在项目中使用了 ik-expression 感觉比较方便。但是现在需要要到自定义函数。
在2.0.jar版本中发现没有使用说明中提到的方面。下载后续版�
��2.05版本后发现有调用方法。
但还是面临一个问题。我web服务器支持
jdk1.5版本。而您这里发布的jar包编译应该至少到6.0了吧。所��
�在发布后出现版本异常。能否发布支持
jdk1.5编译的jar包出来,急需,谢谢。
Original issue reported on code.google.com by [email protected]
on 17 Aug 2011 at 6:15
IKExpression作者,你好!我对IKExpression和JSEL性能做了对比,结�
��如下
Source:1000+100.0*99-(600-3*15)%(((68-9)-3)*2-100)+10000%7*71
JSEL:
value:11181.0
time:0.018647991(s)
IKExpression:
value:11181.0
time:24.744314(s)
Source:6.7-100>39.6 ? 5==5? 4+5:6-1 : !(100%3-39.0<27) ? 8*2-199: 100%3
JSEL:
value:1
time:0.014517993(s)
IKExpression:
value:1
time:26.697668(s)
Source:i * pi
JSEL:
value:314.0
time:0.22054861(s)
IKExpression:
value:314.0
time:5.6250362(s)
Source:1
JSEL:
value:1
time:0.011958787(s)
IKExpression:
value:1
time:0.95222974(s)
-----
为什么差那么多啊,我使用IKExpression那里出问题了吗,请指��
�,谢谢,代码见附件
Original issue reported on code.google.com by [email protected]
on 29 Dec 2010 at 9:09
Attachments:
问题1: 给定表达式【单元格值 == null ? "未填" :
单元格值】,如果传入参数【单元格值=5】,则执行报错
问题2: 给定表达式【单元格值 == null ? "未填" :
单元格值】,如果传入参数【单元格值=null】,则执行报错
Original issue reported on code.google.com by [email protected]
on 9 Sep 2011 at 10:29
建议说明文件用pdf格式的。很多人实际上打不开doc的文件。
另外,多谢你的工程,很好用`
Original issue reported on code.google.com by [email protected]
on 9 Jul 2009 at 2:51
What steps will reproduce the problem?
1. 使用定制的classloader加载入口程序
2. 加载ik-expression库
3. ik-expression加载定制的bean class
What is the expected output? What do you see instead?
classloader之间的类型转换出错
What version of the product are you using? On what operating system?
2.1.2
Please provide any additional information below.
Fixit:
org.wltea.expression.function.FunctionLoader中73行修改为:
//Class _class = Class.forName(className);
Class _class = Class.forName(className, true,
Thread.currentThread().getContextClassLoader());
Original issue reported on code.google.com by [email protected]
on 26 Sep 2010 at 2:37
List<Variable> variables = new ArrayList<Variable>();
variables.add(Variable.createVariable("var1", "abc"));
List<String> values = new ArrayList<String>();
values.add("value1");
values.add("value2");
variables.add(Variable.createVariable("var2", values));
System.out.println(ExpressionEvaluator.evaluate("$getActiveListInfo(var1,var2)",variables));
System.out.println(ExpressionEvaluator.evaluate("$getActiveListInfo(\"ddd\",\"kkkkk\")"));
getActiveListInfo函数第二个参数为list,怎么在直接调用函数时定�
��呢
Original issue reported on code.google.com by [email protected]
on 6 Jun 2013 at 8:01
We need test classes. Thank you.
Original issue reported on code.google.com by [email protected]
on 14 May 2014 at 8:39
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.