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, validateApplyKeynameKey| 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, toStringgetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic 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 Procedure1or2java.lang.Throwablepublic 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 Procedure1or2java.lang.Throwablepublic void compile(ApplyExp exp, Compilation comp, Target target)
compile in interface Inlineablepublic Type getReturnType(Expression[] args)
ProceduregetReturnType in class Procedure