use of lucee.runtime.type.UDFHasProperty in project Lucee by lucee.
the class PropertyFactory method addHas.
public static void addHas(ComponentImpl comp, Property prop) throws ApplicationException {
Member m = comp.getMember(Component.ACCESS_PRIVATE, KeyImpl.getInstance("has" + getSingularName(prop)), true, false);
if (!(m instanceof UDF)) {
UDF udf = new UDFHasProperty(comp, prop);
comp.registerUDF(KeyImpl.init(udf.getFunctionName()), udf);
}
}
Aggregations