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

📄 conditionexbizatomstatement.java

📁 这个是使用java开发的一个平台
💻 JAVA
字号:
package com.exp.bizatom.auto.statement;

import com.exp.bizatom.auto.BizAutoAtomLogic;
import com.exp.bizatom.auto.rule.BizRuleEngine;
import com.exp.fcl.xml.EXPXMLNode;

/**
 * 
 * @author Administrator <BR>
 *         格式: <BR>
 *         &lt;condition-rule rule="判断规则;必须"/&gt; <br>
 *         规则格式:>, <,>=, <= 作用与数字 <br>
 *         =,!= 作用于数字和字符串、数字;数字优先级高 <BR>
 *         =null,!=null作用于对象和字符串 <BR>
 *         <HR>
 *         优先级排序 <BR>
 *         =null,!=null; >=; <=;!=; >; <; =,!=
 *  
 */
public class ConditionExBizAtomStatement extends BizAtomStatement {
    protected String rule;

    public Object create() {
        ConditionExBizAtomStatement ret = new ConditionExBizAtomStatement();
        ret.rule = this.rule;
        return ret;
    }

    public int execute(BizAutoAtomLogic function, int row)
            throws java.lang.Throwable {
        BizRuleEngine ruleEngine = new BizRuleEngine(function.getStack(),
                this.rule);
        return ruleEngine.check() ? 101 : 102;
    }

    protected void parse(EXPXMLNode node) {
        this.rule = node.getAttributeValue("rule");
        if ("".equals(this.rule)) {
            this.rule = node.getNodeValue();
        }
    }
}

⌨️ 快捷键说明

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