org.vertexium.cypher.ast.CypherCompilerContext Maven / Gradle / Ivy
package org.vertexium.cypher.ast;
import org.vertexium.cypher.functions.CypherFunction;
import java.util.HashMap;
import java.util.Map;
public class CypherCompilerContext {
private final Map functions;
public CypherCompilerContext() {
this(new HashMap<>());
}
public CypherCompilerContext(Map functions) {
this.functions = functions;
}
public CypherFunction getFunction(String functionName) {
return functions.get(functionName.toLowerCase());
}
}