public class Expr
extends java.lang.Object
each
call that emits one result to out
.
Block.each(Ops.PLUS, new Expr(Ops.TIMES, 2, 3), 1).out("*res")
computes
2 * 3 + 1
and stores result in "*res"
.Constructor and Description |
---|
Expr(com.rpl.rama.impl.NativeAnyArityRamaOperation op,
java.lang.Object... args)
Constructs an expression for built-in operation that takes any number of arguments
|
Expr(RamaFunction0<R> op)
Constructs an expression with zero arguments
|
Expr(RamaFunction1<T0,R> op,
java.lang.Object arg0)
Constructs an expression with one argument
|
Expr(RamaFunction2<T0,T1,R> op,
java.lang.Object arg0,
java.lang.Object arg1)
Constructs an expression with two arguments
|
Expr(RamaFunction3<T0,T1,T2,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Constructs an expression with three arguments
|
Expr(RamaFunction4<T0,T1,T2,T3,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Constructs an expression with four arguments
|
Expr(RamaFunction5<T0,T1,T2,T3,T4,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Constructs an expression with five arguments
|
Expr(RamaFunction6<T0,T1,T2,T3,T4,T5,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Constructs an expression with six arguments
|
Expr(RamaFunction7<T0,T1,T2,T3,T4,T5,T6,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Constructs an expression with seven arguments
|
Expr(RamaFunction8<T0,T1,T2,T3,T4,T5,T6,T7,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6,
java.lang.Object arg7)
Constructs an expression with eight arguments
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getArgs() |
java.lang.Object |
getOp() |
public Expr(RamaFunction0<R> op)
public Expr(RamaFunction1<T0,R> op, java.lang.Object arg0)
public Expr(RamaFunction2<T0,T1,R> op, java.lang.Object arg0, java.lang.Object arg1)
public Expr(RamaFunction3<T0,T1,T2,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
public Expr(RamaFunction4<T0,T1,T2,T3,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
public Expr(RamaFunction5<T0,T1,T2,T3,T4,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
public Expr(RamaFunction6<T0,T1,T2,T3,T4,T5,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
public Expr(RamaFunction7<T0,T1,T2,T3,T4,T5,T6,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
public Expr(RamaFunction8<T0,T1,T2,T3,T4,T5,T6,T7,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6, java.lang.Object arg7)
public Expr(com.rpl.rama.impl.NativeAnyArityRamaOperation op, java.lang.Object... args)