com.github.leeonky.dal.ast.opt.Equal Maven / Gradle / Ivy
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