Package com.blazebit.expression.spi
Interface ComparisonOperatorInterpreter
-
public interface ComparisonOperatorInterpreter
An interpreter for comparison operators that is registered as metadata on a domain type.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
interpret(ExpressionInterpreter.Context context, com.blazebit.domain.runtime.model.DomainType leftType, com.blazebit.domain.runtime.model.DomainType rightType, Object leftValue, Object rightValue, ComparisonOperator operator)
Interprets the comparison operator as applied on the given values of the given domain types to a Boolean.
-
-
-
Method Detail
-
interpret
Boolean interpret(ExpressionInterpreter.Context context, com.blazebit.domain.runtime.model.DomainType leftType, com.blazebit.domain.runtime.model.DomainType rightType, Object leftValue, Object rightValue, ComparisonOperator operator)
Interprets the comparison operator as applied on the given values of the given domain types to a Boolean.- Parameters:
context
- The expression interpreter contextleftType
- The domain type of the left valuerightType
- The domain type of the right valueleftValue
- The left valuerightValue
- The right valueoperator
- The domain operator- Returns:
- the interpretation result
-
-