⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 printbizatomstatement.java

📁 这个是使用java开发的一个平台
💻 JAVA
字号:
/*
 * Created on 2005-7-25
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.exp.bizatom.auto.statement;

import com.exp.bizatom.auto.BizAutoAtomLogic;
import com.exp.bizatom.auto.BizAutoAtomUtil;
import com.exp.fcl.security.EventLog;

/**
 * 
 * @author Administrator <br>
 *         输入调试语句 <br>
 *         格式:&lt;print&nbsp;&nbsp;target="待输出的变量或常量"/&gt;
 *  
 */
public class PrintBizAtomStatement extends NormalBizAtomStatement {

    /*
     * (non-Javadoc)
     * 
     * @see com.exp.bizatom.auto.statement.NormalBizAtomStatement#executeStatement(com.exp.bizatom.auto.BizAutoAtomLogic,
     *      int)
     */
    protected int executeStatement(BizAutoAtomLogic logic, int row)
            throws Throwable {
        String target = this.getAttribute("target");
        Object ret = BizAutoAtomUtil.getRealValue(logic.getStack(), target);
        String to = this.getAttribute("to");
        if ("log".equalsIgnoreCase(to)) {
            EventLog.debugLog(ret);
        } else {
            System.out.println(target + "=>>" + ret);
        }
        return 1;
    }

    /*
     * (non-Javadoc)
     * 
     * @see com.exp.fcl.interfaces.Prototype#create()
     */
    public Object create() {
        PrintBizAtomStatement ment = new PrintBizAtomStatement();
        ment.copyAttributesTo(this);
        return ment;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -