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

com.github.leeonky.dal.ast.opt.Equal Maven / Gradle / Ivy

There is a newer version: 0.7.5
Show newest version
package com.github.leeonky.dal.ast.opt;

import com.github.leeonky.dal.ast.node.DALNode;
import com.github.leeonky.dal.runtime.RuntimeContextBuilder;

public class Equal extends DALOperator {
    public Equal() {
        super(Precedence.COMPARISON, "=", true);
    }

    @Override
    public Object calculate(DALNode left, DALNode right, RuntimeContextBuilder.DALRuntimeContext context) {
        return right.verify(left, this, context);
    }

    @Override
    public String inspect(String node1, String node2) {
        return String.format("%s%s %s", node1, label, node2);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy