ubc.cs.JLog.Builtins
Interface iArithmetic

All Known Implementing Classes:
jAbs, jACos, jAdd, jASin, jATan, jATan2, jBitwiseConjunction, jBitwiseDisjunction, jBitwiseExclusiveDisjunction, jBitwiseLeftShift, jBitwiseNegation, jBitwiseRightShift, jCeiling, jCos, jExp, jFloor, jIntegerArithmetic, jIntegerDivide, jIntegerOnlyArithmetic, jIsInteger, jIsReal, jLog, jLog10, jLog2, jLogBase, jMax, jMin, jMinus, jMod, jMultiply, jPlus, jPow, jRandom, jRealArithmetic, jRealDivide, jRealUnaryArithmetic, jRound, jSin, jSqrt, jSubtract, jTan, jTruncate, jUnaryArithmetic

public interface iArithmetic

The extending interface for arithmetic operators (which must also inherit from an operator class).

Author:
Glendon Holst

Field Summary
static int MAX
           
 
Method Summary
 int getPriority()
          Return priority value 0..MAX for operator precedence.
 

Field Detail

MAX

static final int MAX
See Also:
Constant Field Values
Method Detail

getPriority

int getPriority()
Return priority value 0..MAX for operator precedence. Non-operator terms have max priority.

Returns:
the priority of this operator (lower priority number is higher precedence).