Search in sources :

Example 16 with ArgumentIntKey

use of lucee.runtime.type.scope.ArgumentIntKey in project Lucee by lucee.

the class Some method invoke.

private static boolean invoke(PageContext pc, Enumeration e, UDF udf, ExecutorService es, List<Future<Data<Object>>> futures) throws PageException {
    Object v;
    boolean async = es != null;
    Object res;
    int count = 0;
    ArgumentIntKey k;
    while (e.hasMoreElements()) {
        v = e.nextElement();
        k = ArgumentIntKey.init(++count);
        res = _inv(pc, udf, new Object[] { v }, k, v, es, futures);
        if (!async && Caster.toBooleanValue(res))
            return true;
    }
    return false;
}
Also used : ArgumentIntKey(lucee.runtime.type.scope.ArgumentIntKey)

Aggregations

ArgumentIntKey (lucee.runtime.type.scope.ArgumentIntKey)16 Array (lucee.runtime.type.Array)6 ArrayImpl (lucee.runtime.type.ArrayImpl)6 ListIterator (java.util.ListIterator)5 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Collection (lucee.runtime.type.Collection)1 Key (lucee.runtime.type.Collection.Key)1 FunctionArgument (lucee.runtime.type.FunctionArgument)1 Argument (lucee.runtime.type.scope.Argument)1