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