📄 conditionexbizatomstatement.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>
* <condition-rule rule="判断规则;必须"/> <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 + -