Package com.tangosol.coherence.config
Class ParameterMacroExpressionParser
- java.lang.Object
-
- com.tangosol.coherence.config.ParameterMacroExpressionParser
-
- All Implemented Interfaces:
ExpressionParser
public class ParameterMacroExpressionParser extends Object implements ExpressionParser
AParameterMacroExpressionParser
is anExpressionParser
for Coherence Parameter Macros.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.10.18
-
-
Field Summary
Fields Modifier and Type Field Description static ExpressionParser
INSTANCE
The singleton instance of theParameterMacroExpressionParser
.
-
Constructor Summary
Constructors Constructor Description ParameterMacroExpressionParser()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
INSTANCE
public static final ExpressionParser INSTANCE
The singleton instance of theParameterMacroExpressionParser
.
-
-
Method Detail
-
parse
public <T> Expression<T> parse(String sExpression, Class<T> clzResultType) throws ParseException
Attempts to parse the providedString
to produce anExpression
of an expected type.- Specified by:
parse
in interfaceExpressionParser
- 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
-
-