Package com.tangosol.config.expression
Interface ExpressionParser
-
- All Known Implementing Classes:
ParameterMacroExpressionParser
public interface ExpressionParser
AnExpressionParser
parses aString
representation of some calculation to produce anExpression
, that of which when evaluated will return an expected type of value.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.10.18
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Expression<T>
parse(String sExpression, Class<T> clzResultType)
Attempts to parse the providedString
to produce anExpression
of an expected type.
-
-
-
Method Detail
-
parse
<T> Expression<T> parse(String sExpression, Class<T> clzResultType) throws ParseException
Attempts to parse the providedString
to produce anExpression
of an expected type.- Parameters:
sExpression
- theString
representation of theExpression
clzResultType
- the type of value theExpression
will return when evaluated- Returns:
- an
Expression
that will when evaluated will produce the required type - Throws:
ParseException
- when an error occurred attempting to parse theString
-
-