com.scudata.expression.mfn.record.Run Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.expression.mfn.record;
import com.scudata.dm.Context;
import com.scudata.expression.Expression;
import com.scudata.expression.ParamInfo2;
import com.scudata.expression.RecordFunction;
/**
* ??Լ?¼???????ʽ?????ؼ?¼????
* r.run(xi,??) r.run(xi:Fi:,??)
* @author RunQian
*
*/
public class Run extends RecordFunction {
public Object calculate(Context ctx) {
if (param == null) {
return srcRecord;
} else if (param.isLeaf()) {
Expression exp = param.getLeafExpression();
srcRecord.run(exp, ctx);
} else {
ParamInfo2 pi = ParamInfo2.parse(param, "run", true, false);
Expression []exps = pi.getExpressions1();
Expression []assignExps = pi.getExpressions2();
srcRecord.run(assignExps, exps, ctx);
}
return srcRecord;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy