Class CurrencyAmountTokenEvaluator
- java.lang.Object
-
- com.opengamma.strata.report.framework.expression.TokenEvaluator<CurrencyAmount>
-
- com.opengamma.strata.report.framework.expression.CurrencyAmountTokenEvaluator
-
public class CurrencyAmountTokenEvaluator extends TokenEvaluator<CurrencyAmount>
Evaluates a token against a currency amount.
-
-
Constructor Summary
Constructors Constructor Description CurrencyAmountTokenEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationResultevaluate(CurrencyAmount amount, CalculationFunctions functions, String firstToken, List<String> remainingTokens)Evaluates a token against a given object.Class<CurrencyAmount>getTargetType()Gets the type against which tokens can be evaluated in this implementation.ImmutableSet<String>tokens(CurrencyAmount amount)Gets the set of supported token for the given object.-
Methods inherited from class com.opengamma.strata.report.framework.expression.TokenEvaluator
ambiguousTokenFailure, invalidTokenFailure
-
-
-
-
Method Detail
-
getTargetType
public Class<CurrencyAmount> getTargetType()
Description copied from class:TokenEvaluatorGets the type against which tokens can be evaluated in this implementation.- Specified by:
getTargetTypein classTokenEvaluator<CurrencyAmount>- Returns:
- the evaluation type
-
tokens
public ImmutableSet<String> tokens(CurrencyAmount amount)
Description copied from class:TokenEvaluatorGets the set of supported token for the given object.- Specified by:
tokensin classTokenEvaluator<CurrencyAmount>- Parameters:
amount- the object against which tokens may be evaluated- Returns:
- the set of supported tokens
-
evaluate
public EvaluationResult evaluate(CurrencyAmount amount, CalculationFunctions functions, String firstToken, List<String> remainingTokens)
Description copied from class:TokenEvaluatorEvaluates a token against a given object.- Specified by:
evaluatein classTokenEvaluator<CurrencyAmount>- Parameters:
amount- the object against which to evaluate the tokenfunctions- the calculation functionsfirstToken- the first token of the expressionremainingTokens- the remaining tokens in the expression, possibly empty- Returns:
- the result of the evaluation
-
-