com.scudata.expression.mfn.xo.XlsClose 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.mfn.xo;
import com.scudata.common.MessageManager;
import com.scudata.common.RQException;
import com.scudata.dm.Context;
import com.scudata.expression.Node;
import com.scudata.expression.XOFunction;
import com.scudata.resources.EngineMessage;
/**
* ????xo.xlsclose()?? ??@r@w??ʽ??Excel??????Ҫ?ر?
*
*/
public class XlsClose extends XOFunction {
/**
* ????
*/
public Object calculate(Context ctx) {
if (param != null) {
MessageManager mm = EngineMessage.get();
throw new RQException("xlsclose"
+ mm.getMessage("function.invalidParam"));
}
try {
file.xlsclose();
return null;
} catch (RQException e) {
throw e;
} catch (Exception e) {
throw new RQException(e.getMessage(), e);
}
}
/**
* ?Խڵ????Ż?
* @param ctx ??????????
* @param Node ?Ż???Ľڵ?
*/
public Node optimize(Context ctx) {
if (param != null) {
// ?Բ??????Ż?
param.optimize(ctx);
}
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy