类 ExpressionUtil
- java.lang.Object
-
- org.sagacity.sqltoy.utils.ExpressionUtil
-
public class ExpressionUtil extends Object
- 版本:
- v1.0,Date:2009-5-20
- 作者:
- zhongxuchen
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Objectcalculate(String expression)protected static StringcalFunction(String function, String value)protected static doublecalValue(String value1, String opt, String value2)protected static intgetOptPriorityIn(String opt)protected static intgetOptPriorityOut(String opt)protected static StringgetOPTS()protected static StringgetValue(String oldValue)protected static booleanisFunctionCal(String value)protected static booleanisOpt(String value)protected static booleanisValue(String cValue)
-
-
-
方法详细资料
-
getOptPriorityOut
protected static int getOptPriorityOut(String opt) throws Exception
- 抛出:
Exception
-
getOPTS
protected static String getOPTS()
-
isValue
protected static boolean isValue(String cValue)
-
isOpt
protected static boolean isOpt(String value)
-
calValue
protected static double calValue(String value1, String opt, String value2) throws Exception
- 抛出:
Exception
-
isFunctionCal
protected static boolean isFunctionCal(String value)
-
-