com.github.harbby.dsxparser.function.IsNull Maven / Gradle / Ivy
The newest version!
package com.github.harbby.dsxparser.function;
import com.github.harbby.dsxparser.DsxFunc;
import com.github.harbby.dsxparser.FuncInfo;
import com.github.harbby.dsxparser.tree.Expression;
import com.github.harbby.dsxparser.tree.QualifiedName;
import java.util.List;
@FuncInfo(value = "isNull", argsNumber = 1)
public class IsNull extends DsxFunc {
public IsNull(QualifiedName name, List arguments) {
super(name, arguments);
}
@Override
public String doGenSql() {
return String.format("isNull(%s)", arguments.get(0).doGenSql());
}
}