接口 com.greenpineyu.fel.function.Function
的使用

使用 Function 的软件包
com.greenpineyu.fel   
com.greenpineyu.fel.function   
com.greenpineyu.fel.function.operator   
com.greenpineyu.fel.parser   
 

com.greenpineyu.felFunction 的使用
 

参数类型为 Functioncom.greenpineyu.fel 中的方法
 void FelEngineImpl.addFun(Function fun)
           
 void FelEngine.addFun(Function fun)
          添加函数到用户函数库中(执行表达式时,优先从用户函数库中获取函数)
 

com.greenpineyu.fel.functionFunction 的使用
 

实现 Functioncom.greenpineyu.fel.function 中的类
 class CommonFunction
          普通函数
 class Dollar
          $函数,通过$获取class或者创建对象 ${Math} 结果为 Math.class ${Dollar.new} 结果为 new Dollar()
 class JavaMethod
          此类用于保存用户注册的java method。
 class StableFunction
           
 class TolerantFunction
          有容错功能的函数
 

返回 Functioncom.greenpineyu.fel.function 中的方法
 Function FunMgr.getFun(String funName)
          获取函数。
 

参数类型为 Functioncom.greenpineyu.fel.function 中的方法
 void FunMgr.add(Function fun)
          添加函数到用户函数库中
 

com.greenpineyu.fel.function.operatorFunction 的使用
 

实现 Functioncom.greenpineyu.fel.function.operator 中的类
 class Add
           
 class And
          逻辑操作符
 class CollectionGet
          根据索引获取某个集合的值,相当于List.get(i)方法和array[i]方法。
 class Cond
          三元表达式操作符
 class Div
           
 class Dot
           
 class Equal
           
 class GreaterThan
           
 class GreaterThenEqual
           
 class LessThen
          包名 .script.function.operator 类名 RelationalOperator.java 创建日期 Oct 26, 20103:04:25 PM 作者 版权
 class LessThenEqual
           
 class Mod
           
 class Mul
          包名 .script.function.operator 类名 MultiplicativeOperator.java 创建日期 Oct 26, 20102:47:15 PM 作者 版权
 class NotEqual
           
 class NotOper
          取反操作符
 class Or
           
 class Sub
           
 

com.greenpineyu.fel.parserFunction 的使用
 

返回 Functioncom.greenpineyu.fel.parser 中的方法
 Function FunNode.getFun()
           
 



Copyright © 2013. All Rights Reserved.