Search in sources :

Example 1 with UDFRemoveProperty

use of lucee.runtime.type.UDFRemoveProperty in project Lucee by lucee.

the class PropertyFactory method addRemove.

public static void addRemove(ComponentImpl comp, Property prop) throws ApplicationException {
    Member m = comp.getMember(Component.ACCESS_PRIVATE, KeyImpl.getInstance("remove" + getSingularName(prop)), true, false);
    if (!(m instanceof UDF)) {
        UDF udf = new UDFRemoveProperty(comp, prop);
        comp.registerUDF(KeyImpl.init(udf.getFunctionName()), udf);
    }
}
Also used : UDF(lucee.runtime.type.UDF) Member(lucee.runtime.component.Member) UDFRemoveProperty(lucee.runtime.type.UDFRemoveProperty)

Aggregations

Member (lucee.runtime.component.Member)1 UDF (lucee.runtime.type.UDF)1 UDFRemoveProperty (lucee.runtime.type.UDFRemoveProperty)1