ArithmeticRepository

public abstract class ArithmeticRepository
Derive from this class to provide custom arithmetic operator methods. Add any number of public, *static* methods which represent either binary operator logic, or unary/binary/ternary arithmetic function logic and decorate them with the appropriate Arithmetic.OperatorAttribute or Arithmetic.FunctionAttribute respectively.

Methods

UndefinedException

#
Create an exception expressing an undefined binary function.
protected static Exception UndefinedException(
fn,
Function.
a,
First operand type.
b
Second operand type.
)

UndefinedException

#
Create an exception expressing an undefined operation.
protected static Exception UndefinedException(
op,
Operation.
a,
First operand type.
b
Second operand type.
)

UndefinedException

#
Create an exception expressing an undefined operation.
protected static Exception UndefinedException(
name,
Name of operation.
params Type[]
types
Collection of relevant types.
)

UndefinedException

#
Create an exception expressing an undefined ternary function.
protected static Exception UndefinedException(
fn,
Function.
a,
First operand type.
b,
Second operand type.
c
Third operand type.
)

UndefinedException

#
Create an exception expressing an undefined unary function.
protected static Exception UndefinedException(
fn,
Function.
a
First operand type.
)