Package com.tangosol.config.expression
Interface ExpressionParser
- All Known Implementing Classes:
ParameterMacroExpressionParser
public interface ExpressionParser
An
ExpressionParser parses a String representation of some calculation to produce an
Expression, that of which when evaluated will return an expected type of value.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.10.18
-
Method Summary
Modifier and TypeMethodDescription<T> Expression<T> Attempts to parse the providedStringto produce anExpressionof an expected type.
-
Method Details
-
parse
Attempts to parse the providedStringto produce anExpressionof an expected type.- Parameters:
sExpression- theStringrepresentation of theExpressionclzResultType- the type of value theExpressionwill return when evaluated- Returns:
- an
Expressionthat will when evaluated will produce the required type - Throws:
ParseException- when an error occurred attempting to parse theString
-