Package org.meteoinfo.data.mathparser
Class ExpressionBase
- java.lang.Object
-
- org.meteoinfo.data.mathparser.ExpressionBase
-
- All Implemented Interfaces:
IExpression
- Direct Known Subclasses:
FunctionExpression,NumberExpression,OperatorExpression
public abstract class ExpressionBase extends java.lang.Object implements IExpression
-
-
Constructor Summary
Constructors Constructor Description ExpressionBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intgetArgumentCount()Get the number of arguments this expression usesprotected voidvalidate(java.lang.Object[] numbers)Validates the specified numbers for the expression-
Methods inherited from interface org.meteoinfo.data.mathparser.IExpression
evaluate
-
-
-
-
Method Detail
-
getArgumentCount
public abstract int getArgumentCount()
Description copied from interface:IExpressionGet the number of arguments this expression uses- Specified by:
getArgumentCountin interfaceIExpression- Returns:
- The argument count
-
validate
protected void validate(java.lang.Object[] numbers)
Validates the specified numbers for the expression- Parameters:
numbers- The numbers to validate
-
-