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

com.scudata.expression.IterateParam 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;

import com.scudata.dm.Context;
import com.scudata.dm.Param;
import com.scudata.util.Variant;

/**
 * ~~????????
 * @author RunQian
 *
 */
public class IterateParam extends Node {	
	public Object calculate(Context ctx) {
		return ctx.getIterateParam().getValue();
	}

	public Object assign(Object value, Context ctx) {
		ctx.getIterateParam().setValue(value);
		return value;
	}
	
	public Object addAssign(Object value, Context ctx) {
		Param param = ctx.getIterateParam();
		Object result = Variant.add(param.getValue(), value);
		param.setValue(result);
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy