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

com.scudata.expression.SubVal Maven / Gradle / Ivy

Go to download

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

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