org.snapscript.tree.math.NumericCalculator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
package org.snapscript.tree.math;
import org.snapscript.core.variable.Value;
public interface NumericCalculator {
Value power(Number left, Number right);
Value add(Number left, Number right);
Value subtract(Number left, Number right);
Value divide(Number left, Number right);
Value multiply(Number left, Number right);
Value modulus(Number left, Number right);
Value shiftLeft(Number left, Number right);
Value shiftRight(Number left, Number right);
Value unsignedShiftRight(Number left, Number right);
Value and(Number left, Number right);
Value or(Number left, Number right);
Value xor(Number left, Number right);
}