public interface ParseImp
ParseImp
class defines an interface for all
classes that help parse mathematical expressions by setting up a
correspondence between variable names and their type and index value.
The variable's index value will be used in the subsequent evaluation
operation to retrieve the variable value. The variable's type is used
in expression parsing to determine type conversions and the expression
output type.EvaluateImp
,
ExpressionParser.evaluateToDouble(noaa.coastwatch.util.expression.EvaluateImp)
,
ExpressionParser.evaluateToLong(noaa.coastwatch.util.expression.EvaluateImp)
Modifier and Type | Method and Description |
---|---|
int |
indexOfVariable(java.lang.String varName)
Gets the index of the specified variable.
|
java.lang.String |
typeOfVariable(java.lang.String varName)
Gets the type of a variable as a primitive wrapper class name.
|
int indexOfVariable(java.lang.String varName)
EvaluateImp
instance.varName
- the variable name.java.lang.String typeOfVariable(java.lang.String varName)
varName
- the variable name.