return null;
}
public static ExprNodeScript getExistsScript(String defaultDialect, String expressionName, List<ExprNode> parameters, Collection<ExpressionScriptProvided> scriptExpressions, ExprDeclaredService exprDeclaredService) {
if (!scriptExpressions.isEmpty()) {
ExpressionScriptProvided script = findScript(expressionName, parameters.size(), scriptExpressions);
if (script != null) {
return new ExprNodeScript(defaultDialect, script, parameters);
}
}
List<ExpressionScriptProvided> globalScripts = exprDeclaredService.getScriptsByName(expressionName);
ExpressionScriptProvided script = findScript(expressionName, parameters.size(), globalScripts);
if (script != null) {
return new ExprNodeScript(defaultDialect, script, parameters);
}
return null;
}