public Collection<ELFunctionDefinition> getAllFunctions() { List<ELFunctionDefinition> fns = new ArrayList<>(functionLibrary.entries()); if (parent != null) { fns.addAll(parent.getAllFunctions()); } return fns; }
public ELFunctionDefinition getFunction(String name) { ELFunctionDefinition f = functionLibrary.getFunction(name); if (f != null) { return f; } if (parent != null) { return parent.getFunction(name); } return null; }
public void registerFunction(ELFunctionDefinition f) { functionLibrary.addFunction(f); }