类 FunctionExpression
- java.lang.Object
-
- org.meteoinfo.data.mathparser.ExpressionBase
-
- org.meteoinfo.data.mathparser.FunctionExpression
-
- 所有已实现的接口:
IExpression
public class FunctionExpression extends ExpressionBase
- 作者:
- yaqiang
-
-
构造器概要
构造器 限定符 构造器 说明 FunctionExpression(String function)protectedFunctionExpression(String function, boolean validate)Constructor
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectevaluate(Object[] numbers)Math evaluateintgetArgumentCount()Get the number of arguments this expression usesstatic String[]getFunctionNames()Get function namesstatic booleanisFunction(String function)Determines whether the specified function name is a functionStringtoString()-
从类继承的方法 org.meteoinfo.data.mathparser.ExpressionBase
validate
-
-
-
-
方法详细资料
-
getArgumentCount
public int getArgumentCount()
从接口复制的说明:IExpressionGet the number of arguments this expression uses- 指定者:
getArgumentCount在接口中IExpression- 指定者:
getArgumentCount在类中ExpressionBase- 返回:
- The argument count
-
isFunction
public static boolean isFunction(String function)
Determines whether the specified function name is a function- 参数:
function- The function name- 返回:
- Boolean
-
evaluate
public Object evaluate(Object[] numbers)
从接口复制的说明:IExpressionMath evaluate- 参数:
numbers- The numbers to evaluate- 返回:
- The result of the evaluated numbers
-
getFunctionNames
public static String[] getFunctionNames()
Get function names- 返回:
- Function names
-
-