Class InfixPowerOfOperator

    • Constructor Detail

      • InfixPowerOfOperator

        public InfixPowerOfOperator()
    • Method Detail

      • evaluate

        public EvaluationValue evaluate​(Expression expression,
                                        Token operatorToken,
                                        EvaluationValue... operands)
                                 throws EvaluationException
        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.
        Throws:
        EvaluationException - In case there were problems during evaluation.
      • getPrecedence

        public int getPrecedence​(ExpressionConfiguration configuration)
        Description copied from interface: OperatorIfc
        Called during parsing, can be implemented to return a customized precedence.
        Specified by:
        getPrecedence in interface OperatorIfc
        Overrides:
        getPrecedence in class AbstractOperator
        Parameters:
        configuration - The expression configuration.
        Returns:
        The default precedence from the operator annotation, or a customized value.