Class BigMathInfixPowerOfOperator
- java.lang.Object
-
- com.ezylang.evalex.operators.AbstractOperator
-
- com.ezylang.evalex.bigmath.operators.bigdecimalmath.BigMathInfixPowerOfOperator
-
- All Implemented Interfaces:
com.ezylang.evalex.operators.OperatorIfc
@InfixOperator(precedence=40, leftAssociative=false) public class BigMathInfixPowerOfOperator extends com.ezylang.evalex.operators.AbstractOperatorPower of operator, calculates the power of right operand of left operand. The precedence is read from the configuration during parsing.- See Also:
getPrecedence(ExpressionConfiguration)
-
-
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
-
-
Constructor Summary
Constructors Constructor Description BigMathInfixPowerOfOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ezylang.evalex.data.EvaluationValueevaluate(com.ezylang.evalex.Expression expression, com.ezylang.evalex.parser.Token operatorToken, com.ezylang.evalex.data.EvaluationValue... operands)intgetPrecedence(com.ezylang.evalex.config.ExpressionConfiguration configuration)
-
-
-
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:
getPrecedencein interfacecom.ezylang.evalex.operators.OperatorIfc- Overrides:
getPrecedencein classcom.ezylang.evalex.operators.AbstractOperator
-
-