Class BigMathInfixPowerOfOperator

  • All Implemented Interfaces:
    com.ezylang.evalex.operators.OperatorIfc

    @InfixOperator(precedence=40,
                   leftAssociative=false)
    public class BigMathInfixPowerOfOperator
    extends com.ezylang.evalex.operators.AbstractOperator
    Power of operator, calculates the power of right operand of left operand. The precedence is read from the configuration during parsing.
    See Also:
    getPrecedence(ExpressionConfiguration)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.ezylang.evalex.operators.OperatorIfc

        com.ezylang.evalex.operators.OperatorIfc.OperatorType
    • Field Summary

      • Fields inherited from interface com.ezylang.evalex.operators.OperatorIfc

        OPERATOR_PRECEDENCE_ADDITIVE, OPERATOR_PRECEDENCE_AND, OPERATOR_PRECEDENCE_COMPARISON, OPERATOR_PRECEDENCE_EQUALITY, OPERATOR_PRECEDENCE_MULTIPLICATIVE, OPERATOR_PRECEDENCE_OR, OPERATOR_PRECEDENCE_POWER, OPERATOR_PRECEDENCE_POWER_HIGHER, OPERATOR_PRECEDENCE_UNARY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.ezylang.evalex.data.EvaluationValue evaluate​(com.ezylang.evalex.Expression expression, com.ezylang.evalex.parser.Token operatorToken, com.ezylang.evalex.data.EvaluationValue... operands)  
      int getPrecedence​(com.ezylang.evalex.config.ExpressionConfiguration configuration)  
      • Methods inherited from class com.ezylang.evalex.operators.AbstractOperator

        getPrecedence, isInfix, isLeftAssociative, isOperandLazy, isPostfix, isPrefix
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BigMathInfixPowerOfOperator

        public BigMathInfixPowerOfOperator()
    • Method Detail

      • evaluate

        public com.ezylang.evalex.data.EvaluationValue evaluate​(com.ezylang.evalex.Expression expression,
                                                                com.ezylang.evalex.parser.Token operatorToken,
                                                                com.ezylang.evalex.data.EvaluationValue... operands)
                                                         throws com.ezylang.evalex.EvaluationException
        Throws:
        com.ezylang.evalex.EvaluationException
      • getPrecedence

        public int getPrecedence​(com.ezylang.evalex.config.ExpressionConfiguration configuration)
        Specified by:
        getPrecedence in interface com.ezylang.evalex.operators.OperatorIfc
        Overrides:
        getPrecedence in class com.ezylang.evalex.operators.AbstractOperator