Class InfixAndOperator

    • Constructor Detail

      • InfixAndOperator

        public InfixAndOperator()
    • Method Detail

      • evaluate

        public EvaluationValue evaluate​(Expression expression,
                                        Token operatorToken,
                                        EvaluationValue... operands)
        Description copied from interface: OperatorIfc
        Performs the operator logic and returns an evaluation result.
        Parameters:
        expression - The expression, where this function is executed. Can be used to access the expression configuration.
        operatorToken - The operator token from the parsed expression.
        operands - The operands, one for prefix and postfix operators, two for infix operators.
        Returns:
        The evaluation result in form of a EvaluationValue.