public BIF(PageContext pc, String name) throws ApplicationException { super(Component.ACCESS_PUBLIC); ci = (ConfigImpl) pc.getConfig(); FunctionLib fl = ci.getCombinedFLDs(pc.getCurrentTemplateDialect()); flf = fl.getFunction(name); // BIF not found if (flf == null) { Key[] keys = CollectionUtil.toKeys(fl.getFunctions().keySet()); throw new ApplicationException( ExceptionUtil.similarKeyMessage( keys, name, "build in function", "build in functions", null, false)); } try { this.id = Hash.md5(name); } catch (NoSuchAlgorithmException e) { this.id = name; } }
public static lucee.runtime.type.Struct call(PageContext pc) throws PageException { return _call(pc, pc.getCurrentTemplateDialect()); }