use of lucee.runtime.Component in project Lucee by lucee.
the class Operator method isComparableComponent.
private static boolean isComparableComponent(Castable c) {
if (!(c instanceof Component))
return false;
Member member = ((Component) c).getMember(Component.ACCESS_PRIVATE, KeyConstants.__compare, false, false);
if (!(member instanceof UDFPlus))
return false;
UDFPlus udf = (UDFPlus) member;
if (udf.getReturnType() == CFTypes.TYPE_NUMERIC && udf.getFunctionArguments().length == 1) {
return true;
}
return false;
}
Aggregations