Class SecurityTokenEvaluator
- java.lang.Object
-
- com.opengamma.strata.report.framework.expression.TokenEvaluator<Security>
-
- com.opengamma.strata.report.framework.expression.SecurityTokenEvaluator
-
public class SecurityTokenEvaluator extends TokenEvaluator<Security>
Evaluates a token against a security to produce another object.This merges the
Security,SecurityInfoandSecurityPriceInfoobjects, giving priority toSecurity.
-
-
Constructor Summary
Constructors Constructor Description SecurityTokenEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationResultevaluate(Security security, CalculationFunctions functions, String firstToken, List<String> remainingTokens)Evaluates a token against a given object.Class<Security>getTargetType()Gets the type against which tokens can be evaluated in this implementation.Set<String>tokens(Security security)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<Security> getTargetType()
Description copied from class:TokenEvaluatorGets the type against which tokens can be evaluated in this implementation.- Specified by:
getTargetTypein classTokenEvaluator<Security>- Returns:
- the evaluation type
-
tokens
public Set<String> tokens(Security security)
Description copied from class:TokenEvaluatorGets the set of supported token for the given object.- Specified by:
tokensin classTokenEvaluator<Security>- Parameters:
security- the object against which tokens may be evaluated- Returns:
- the set of supported tokens
-
evaluate
public EvaluationResult evaluate(Security security, CalculationFunctions functions, String firstToken, List<String> remainingTokens)
Description copied from class:TokenEvaluatorEvaluates a token against a given object.- Specified by:
evaluatein classTokenEvaluator<Security>- Parameters:
security- 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
-
-