com.scudata.expression.SubVal 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.cellset.INormalCell;
import com.scudata.cellset.datamodel.PgmCellSet;
import com.scudata.common.MessageManager;
import com.scudata.common.RQException;
import com.scudata.dm.Context;
import com.scudata.resources.EngineMessage;
/**
* ???μ????????г???????ĵ?Ԫ???????һ???????Ľ??
* ??
* @author RunQian
*
*/
public class SubVal extends Node {
private PgmCellSet pcs;
public SubVal(PgmCellSet pcs) {
this.pcs = pcs;
}
public Object calculate(Context ctx) {
INormalCell cell = pcs.getCurrent();
if (cell == null) {
MessageManager mm = EngineMessage.get();
throw new RQException(mm.getMessage("cellset.cellNotExist"));
}
return pcs.executeSubCell(cell.getRow(), cell.getCol());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy