gnu.kawa.functions
public class AddOp extends ProcedureN implements CanInline, Inlineable
Field Summary | |
---|---|
static AddOp | $Mn |
static AddOp | $Pl |
Constructor Summary | |
---|---|
AddOp(String name, int plusOrMinus) |
Method Summary | |
---|---|
static Object | apply2(int plusOrMinus, Object arg1, Object arg2) |
static Object | applyN(int plusOrMinus, Object[] args) |
static Object | applyN(int plusOrMinus, Object init, Object[] args) |
Object | applyN(Object[] args) |
static int | classify(Type type) Classify an expression according to its numeric type.
kind==0: not a number.
kind==1: a non-real number
kind==2: real number
kind==3: floating-point
kind==4: exact integer |
void | compile(ApplyExp exp, Compilation comp, Target target) |
Type | getReturnType(Expression[] args) |
Expression | inline(ApplyExp exp, ExpWalker walker) |
static Expression | pairwise(Procedure proc, Expression rproc, Expression[] args, ExpWalker walker) Convert (PROC A B C) to (PROC (PROC A B) C) etc. |
static Expression | primInline(int opcode, ApplyExp exp) |
static Object | $Mn(Object arg1, Object arg2) |
static Object | $Mn(Object arg1) |
static Object | $Mn$V(Object arg1, Object arg2, Object arg3, Object[] rest) |
static Object | $Pl(Object arg1, Object arg2) |
static Object | $Pl$V(Object arg1, Object arg2, Object arg3, Object[] rest) |