Search in sources :

Example 1 with UDFGetterProperty

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

the class PropertyFactory method addGet.

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

Aggregations

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