All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ql.util.express.instruction.op.OperatorNor Maven / Gradle / Ivy

Go to download

QLExpress is a powerful, lightweight, dynamic language for the Java platform aimed at improving developers’ productivity in different business scenes.

The newest version!
package com.ql.util.express.instruction.op;

import com.ql.util.express.Operator;

public class OperatorNor extends Operator {
    public OperatorNor(String name) {
        this.name = name;
    }

    public OperatorNor(String aliasName, String name, String errorInfo) {
        this.name = name;
        this.aliasName = aliasName;
        this.errorInfo = errorInfo;
    }

    @Override
    public Object executeInner(Object[] list) throws Exception {
        return executeInner(list[0], list[1]);
    }

    public Object executeInner(Object op1, Object op2) {
        if (op1 != null) {
            return op1;
        } else {
            return op2;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy