Package nz.org.riskscape.engine.function
Interface OperatorResolver
public interface OperatorResolver
Used for Realizing BinaryOperations in to RealizedExpressions that can be used to evaluate an
expression
-
Method Summary
Modifier and TypeMethodDescriptionresolve(RealizationContext context, BinaryOperation operation, Type inputType, Type lhs, Type rhs) Attempt to find aRiskscapeFunctionthat can compute the givenBinaryOperation
-
Method Details
-
resolve
Optional<RiskscapeFunction> resolve(RealizationContext context, BinaryOperation operation, Type inputType, Type lhs, Type rhs) Attempt to find a
RiskscapeFunctionthat can compute the givenBinaryOperation- Parameters:
operation- the expression we are resolving a function forinputType- the type that the expression is being realized againstlhs- the evaluated type of the lhs of the expressionrhs- the evaluated type of the rhs of the expression- Returns:
- a
RiskscapeFunctionthat works for the given operation, or empty if none can be found.
-