文件名称:eval-dist-0.5
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:108.38kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
java 中没有类似javascr ipt中的eval()函数,无法直接将动态变化的字符串转换成java执行语句。此文档中提供两个jar包,和其api,使用非常简单。
Example of use:
Expression exp = new Expression("(x + y)/2")
Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>()
variables.put("x", new BigDecimal("4.32"))
variables.put("y", new BigDecimal("342.1"))
BigDecimal result = exp.eval(variables)
System.out.println(result)
-java does not like the javascr ipt eval () function, can not directly change the dynamic execution of string into a java statement. This document provides two jar files, and its api, very simple to use. Example of use: Expression exp = new Expression (" (x+ y)/2" ) Map <String, BigDecimal> variables = new HashMap <String, BigDecimal> () Variables.put (" x" , new BigDecimal (" 4.32" )) variables.put (" y" , new BigDecimal (" 342.1" )) BigDecimal result = exp.eval (variables) System.out . println (result)
Example of use:
Expression exp = new Expression("(x + y)/2")
Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>()
variables.put("x", new BigDecimal("4.32"))
variables.put("y", new BigDecimal("342.1"))
BigDecimal result = exp.eval(variables)
System.out.println(result)
-java does not like the javascr ipt eval () function, can not directly change the dynamic execution of string into a java statement. This document provides two jar files, and its api, very simple to use. Example of use: Expression exp = new Expression (" (x+ y)/2" ) Map <String, BigDecimal> variables = new HashMap <String, BigDecimal> () Variables.put (" x" , new BigDecimal (" 4.32" )) variables.put (" y" , new BigDecimal (" 342.1" )) BigDecimal result = exp.eval (variables) System.out . println (result)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
eval/
eval/doc/
eval/doc/api/
eval/doc/api/net/
eval/doc/api/net/java/
eval/doc/api/net/java/dev/
eval/doc/api/net/java/dev/eval/
eval/doc/api/net/java/dev/eval/class-use/
eval/doc/api/net/java/dev/eval/example/
eval/doc/api/net/java/dev/eval/example/calculator/
eval/doc/api/net/java/dev/eval/example/calculator/class-use/
eval/doc/api/resources/
eval/src/
eval/srcExamples/
eval/srcExamples/net/
eval/srcExamples/net/java/
eval/srcExamples/net/java/dev/
eval/srcExamples/net/java/dev/eval/
eval/srcExamples/net/java/dev/eval/example/
eval/srcExamples/net/java/dev/eval/example/calculator/
eval/srcTest/
eval/srcTest/net/
eval/srcTest/net/java/
eval/srcTest/net/java/dev/
eval/srcTest/net/java/dev/eval/
eval/srcTest/net/java/dev/eval/example/
eval/srcTest/net/java/dev/eval/example/calculator/
eval/srcTest/net/java/dev/eval/test/
eval/src/net/
eval/src/net/java/
eval/src/net/java/dev/
eval/src/net/java/dev/eval/
eval/LICENSE
eval/NOTICE
eval/build.xml
eval/calculator.jar
eval/doc/api/allclasses-frame.html
eval/doc/api/allclasses-noframe.html
eval/doc/api/constant-values.html
eval/doc/api/deprecated-list.html
eval/doc/api/help-doc.html
eval/doc/api/index-all.html
eval/doc/api/index.html
eval/doc/api/net/java/dev/eval/Expression.html
eval/doc/api/net/java/dev/eval/class-use/Expression.html
eval/doc/api/net/java/dev/eval/example/calculator/Calculator.html
eval/doc/api/net/java/dev/eval/example/calculator/class-use/Calculator.html
eval/doc/api/net/java/dev/eval/example/calculator/package-frame.html
eval/doc/api/net/java/dev/eval/example/calculator/package-summary.html
eval/doc/api/net/java/dev/eval/example/calculator/package-tree.html
eval/doc/api/net/java/dev/eval/example/calculator/package-use.html
eval/doc/api/net/java/dev/eval/package-frame.html
eval/doc/api/net/java/dev/eval/package-summary.html
eval/doc/api/net/java/dev/eval/package-tree.html
eval/doc/api/net/java/dev/eval/package-use.html
eval/doc/api/overview-frame.html
eval/doc/api/overview-summary.html
eval/doc/api/overview-tree.html
eval/doc/api/package-list
eval/doc/api/resources/inherit.gif
eval/doc/api/stylesheet.css
eval/eval-0.5.jar
eval/srcExamples/net/java/dev/eval/example/calculator/Calculator.java
eval/srcExamples/net/java/dev/eval/example/calculator/package.html
eval/srcTest/net/java/dev/eval/example/calculator/CalculatorTest.java
eval/srcTest/net/java/dev/eval/test/ExpressionTest.java
eval/src/net/java/dev/eval/Compiler.java
eval/src/net/java/dev/eval/Expression.java
eval/src/net/java/dev/eval/Operation.java
eval/src/net/java/dev/eval/Operator.java
eval/src/net/java/dev/eval/Tokeniser.java
eval/src/net/java/dev/eval/Type.java
eval/src/net/java/dev/eval/package.html
eval/src/overview.html
eval/doc/
eval/doc/api/
eval/doc/api/net/
eval/doc/api/net/java/
eval/doc/api/net/java/dev/
eval/doc/api/net/java/dev/eval/
eval/doc/api/net/java/dev/eval/class-use/
eval/doc/api/net/java/dev/eval/example/
eval/doc/api/net/java/dev/eval/example/calculator/
eval/doc/api/net/java/dev/eval/example/calculator/class-use/
eval/doc/api/resources/
eval/src/
eval/srcExamples/
eval/srcExamples/net/
eval/srcExamples/net/java/
eval/srcExamples/net/java/dev/
eval/srcExamples/net/java/dev/eval/
eval/srcExamples/net/java/dev/eval/example/
eval/srcExamples/net/java/dev/eval/example/calculator/
eval/srcTest/
eval/srcTest/net/
eval/srcTest/net/java/
eval/srcTest/net/java/dev/
eval/srcTest/net/java/dev/eval/
eval/srcTest/net/java/dev/eval/example/
eval/srcTest/net/java/dev/eval/example/calculator/
eval/srcTest/net/java/dev/eval/test/
eval/src/net/
eval/src/net/java/
eval/src/net/java/dev/
eval/src/net/java/dev/eval/
eval/LICENSE
eval/NOTICE
eval/build.xml
eval/calculator.jar
eval/doc/api/allclasses-frame.html
eval/doc/api/allclasses-noframe.html
eval/doc/api/constant-values.html
eval/doc/api/deprecated-list.html
eval/doc/api/help-doc.html
eval/doc/api/index-all.html
eval/doc/api/index.html
eval/doc/api/net/java/dev/eval/Expression.html
eval/doc/api/net/java/dev/eval/class-use/Expression.html
eval/doc/api/net/java/dev/eval/example/calculator/Calculator.html
eval/doc/api/net/java/dev/eval/example/calculator/class-use/Calculator.html
eval/doc/api/net/java/dev/eval/example/calculator/package-frame.html
eval/doc/api/net/java/dev/eval/example/calculator/package-summary.html
eval/doc/api/net/java/dev/eval/example/calculator/package-tree.html
eval/doc/api/net/java/dev/eval/example/calculator/package-use.html
eval/doc/api/net/java/dev/eval/package-frame.html
eval/doc/api/net/java/dev/eval/package-summary.html
eval/doc/api/net/java/dev/eval/package-tree.html
eval/doc/api/net/java/dev/eval/package-use.html
eval/doc/api/overview-frame.html
eval/doc/api/overview-summary.html
eval/doc/api/overview-tree.html
eval/doc/api/package-list
eval/doc/api/resources/inherit.gif
eval/doc/api/stylesheet.css
eval/eval-0.5.jar
eval/srcExamples/net/java/dev/eval/example/calculator/Calculator.java
eval/srcExamples/net/java/dev/eval/example/calculator/package.html
eval/srcTest/net/java/dev/eval/example/calculator/CalculatorTest.java
eval/srcTest/net/java/dev/eval/test/ExpressionTest.java
eval/src/net/java/dev/eval/Compiler.java
eval/src/net/java/dev/eval/Expression.java
eval/src/net/java/dev/eval/Operation.java
eval/src/net/java/dev/eval/Operator.java
eval/src/net/java/dev/eval/Tokeniser.java
eval/src/net/java/dev/eval/Type.java
eval/src/net/java/dev/eval/package.html
eval/src/overview.html
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.