com.canoo.webtest.util
Interface Evaluator
- All Known Implementing Classes:
- StorePropertyStep
public interface Evaluator
Evaluator is a callback interface for the Expression class.
Objects wanting to define special values to be parsed in expressions
should supply an Evaluator instance that converts a string value
into it's double value.
For example, to parse "2*(3-PI)", evaluate will be called with the value
"PI", which should return the value Math.PI. The whole expression will then
evaluate to 0.283
- Author:
- Paul King, Rob Nielsen
|
Method Summary |
double |
evaluate(String s)
Evaluates a special string value. |
evaluate
double evaluate(String s)
- Evaluates a special string value.
- Parameters:
s - the string to evaluate
- Returns:
- the double value of the string
- Throws:
IllegalArgumentException - if there is a problem parsing the parameter