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 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 context
        leftType - The domain type of the left value
        rightType - The domain type of the right value
        leftValue - The left value
        rightValue - The right value
        operator - The domain operator
        Returns:
        the interpretation result