org.wltea.expression.op.define
类 Op_OR

java.lang.Object
  继承者 org.wltea.expression.op.define.Op_OR
所有已实现的接口:
IOperatorExecution

public class Op_OR
extends java.lang.Object
implements IOperatorExecution

逻辑或操作

版本:
2.0 Sep 27, 2008
作者:
林良益,卓诗垚

字段摘要
static Operator THIS_OPERATOR
           
 
构造方法摘要
Op_OR()
           
 
方法摘要
 Constant execute(Constant[] args)
          执行操作符运算
 Constant verify(int opPositin, BaseDataMeta[] args)
          验证操作符参数是否合法
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

THIS_OPERATOR

public static final Operator THIS_OPERATOR
构造方法详细信息

Op_OR

public Op_OR()
方法详细信息

execute

public Constant execute(Constant[] args)
                 throws IllegalExpressionException
从接口 IOperatorExecution 复制的描述
执行操作符运算

指定者:
接口 IOperatorExecution 中的 execute
参数:
args - 注意args中的参数由于是从栈中按LIFO顺序弹出的,所以必须从尾部倒着取数
返回:
Constant 常量型的执行结果
抛出:
IllegalExpressionException

verify

public Constant verify(int opPositin,
                       BaseDataMeta[] args)
                throws IllegalExpressionException
从接口 IOperatorExecution 复制的描述
验证操作符参数是否合法

指定者:
接口 IOperatorExecution 中的 verify
args - 注意args中的参数由于是从栈中按LIFO顺序弹出的,所以必须从尾部倒着取数
返回:
Constant 常量型的执行结果
抛出:
IllegalExpressionException