}
public Object calculate() {
Object lval = calculateItem(this.left);
if(!(lval instanceof Boolean)){
throw new ElException("操作数类型错误!");
}
if(!(Boolean)lval){
return false;
}
Object rval = calculateItem(this.right);
if(!(rval instanceof Boolean)){
throw new ElException("操作数类型错误!");
}
if(!(Boolean)rval){
return false;
}
return true;