public class ArithOp extends Procedure1or2 implements Inlineable
Modifier and Type | Field and Description |
---|---|
static ArithOp |
add |
static ArithOp |
div |
static ArithOp |
idiv |
static ArithOp |
minus |
static ArithOp |
mod |
static ArithOp |
mul |
static ArithOp |
plus |
static ArithOp |
sub |
compilerKey, validateApplyKey
nameKey
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
apply1(java.lang.Object arg1) |
java.lang.Object |
apply2(java.lang.Object arg1,
java.lang.Object arg2) |
void |
compile(ApplyExp exp,
Compilation comp,
Target target) |
static java.math.BigDecimal |
div(java.math.BigDecimal d1,
java.math.BigDecimal d2) |
Type |
getReturnType(Expression[] args)
Semi-deprecated - instead should be set at Inline time.
|
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, isSideEffectFree, match0, match1, match2, match3, match4, matchN, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public static final ArithOp add
public static final ArithOp sub
public static final ArithOp mul
public static final ArithOp div
public static final ArithOp idiv
public static final ArithOp mod
public static final ArithOp plus
public static final ArithOp minus
public java.lang.Object apply1(java.lang.Object arg1) throws java.lang.Throwable
apply1
in class Procedure1or2
java.lang.Throwable
public static java.math.BigDecimal div(java.math.BigDecimal d1, java.math.BigDecimal d2)
public java.lang.Object apply2(java.lang.Object arg1, java.lang.Object arg2) throws java.lang.Throwable
apply2
in class Procedure1or2
java.lang.Throwable
public void compile(ApplyExp exp, Compilation comp, Target target)
compile
in interface Inlineable
public Type getReturnType(Expression[] args)
Procedure
getReturnType
in class Procedure