All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.expression.mfn.record.Run Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
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